class_docstr: Converter class to convert between mtf.Tensor, tf.Tensor and np.array.
docstr: Convert an mtf.Tensor to a numpy array.
docstr_tok: ["Convert","an","mtf.Tensor","to","a","numpy","array","."]
code: def convert_mtf_tensor_to_np_array(self, x_mtf):
      """Convert an mtf.Tensor to a numpy array."""
      _, x_tf = self.convert_mtf_tensor_to_tf_tensor(x_mtf)
      if tf.executing_eagerly():
          return x_tf.numpy()
      else:
          self.session.run(tf.global_variables_initializer())
          return x_tf.eval(session=self.session)
  
file_path: mesh/mesh_tensorflow/test_utils.py
imports: import mesh_tensorflow
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling the NumpyConverter obj's underlying member method code with example usage: obj.convert_mtf_tensor_to_np_array(x_mtf) and returns: x_tf, x_tf