<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
I'm using tensorflow 2.10.0.
<ASSISTANT_TASK:>
Python Code:
import tensorflow as tf
import numpy as np
np.random.seed(10)
A = tf.constant(np.random.randint(100,size=(5, 3)))
def g(A):
    return tf.reduce_prod(A, 1)
result = g(A.__copy__())
<END_TASK>