code: def testCopyToMeshToShardedLayout(self, is_eager):
      target_layout = Layout([_MESH_DIM_X], self.first_mesh)
      a_np = array_ops.zeros([8], dtype=dtypes.int32)
  
      def fn(val):
          return api.copy_to_mesh(val, target_layout)
  
      if not is_eager:
          fn = polymorphic_function.function(fn)
  
      with api.default_mesh(self.first_mesh):
          dt_value = fn(a_np)
  
      self.assertDTensorEqual(a_np, target_layout, dt_value)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.dtensor.python import accelerator_util
  from tensorflow.dtensor.python import api
  from tensorflow.dtensor.python import config
  from tensorflow.dtensor.python import d_variable
  from tensorflow.dtensor.python import layout
  from tensorflow.dtensor.python.tests import test_util
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import context
  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 gen_math_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the MultiMeshTest obj's underlying member method code with example usage: obj.testCopyToMeshToShardedLayout(is_eager) and returns: api