code: def testTensorLayout(self):
      tensor_layout = mtf.TensorLayout([0, 2, 1])
      self.assertEqual(tensor_layout.mesh_axis_to_tensor_axis(0), ())
      self.assertEqual(tensor_layout.mesh_axis_to_tensor_axis(1), (0,))
      self.assertEqual(
          tensor_layout.mesh_axis_to_tensor_axis(2), (0, 2)
      )
      tensor_layout = mtf.TensorLayout([None, 0])
      self.assertFalse(tensor_layout.is_fully_replicated)
      tensor_layout = mtf.TensorLayout([None, None, None])
      self.assertTrue(tensor_layout.is_fully_replicated)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import mesh_tensorflow
  from mesh_tensorflow import test_utils
  import numpy
  import tensorflow.compat.v1
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 7 for calling the MeshTensorFlowTest obj's underlying member method code with example usage: obj.testTensorLayout() without return types