code: def testV2API(self):
      layout = Layout.replicated(self.mesh, rank=1)
      zero_tensor = array_ops.zeros([10], layout=layout)
      zero_like_tensor = array_ops.zeros_like_v2(
          zero_tensor, layout=layout
      )
      self.assertAllEqual(zero_like_tensor.numpy(), zero_tensor.numpy())
  
      ones_tensor = array_ops.ones([10], layout=layout)
      ones_like_tensor = array_ops.ones_like_v2(
          zero_tensor, layout=layout
      )
      self.assertAllEqual(ones_like_tensor.numpy(), ones_tensor.numpy())
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.dtensor.python import api
  from tensorflow.dtensor.python import d_random
  from tensorflow.dtensor.python import layout
  from tensorflow.dtensor.python import numpy_util
  from tensorflow.dtensor.python.tests import test_util
  from tensorflow.python.eager.polymorphic_function import polymorphic_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the APITest obj's underlying member method code with example usage: obj.testV2API() without return types