class_docstr: Describes a set of TPU devices.
  
  Represents both the shape of the physical mesh, and the mapping between
  TensorFlow TPU devices to physical mesh coordinates.
class_docstr_tok: ["Describes","a","set","of","TPU","devices",".","Represents","both","the","shape","of","the","physical","mesh",",","and","the","mapping","between","TensorFlow","TPU","devices","to","physical","mesh","coordinates","."]
docstr: Returns the number of dimensions in the mesh.
docstr_tok: ["Returns","the","number","of","dimensions","in","the","mesh","."]
code: def mesh_rank(self):
      """Returns the number of dimensions in the mesh."""
      return len(self._mesh_shape)
  
imports: import numpy
  from tensorflow.core.protobuf.tpu import topology_pb2
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 5 for calling the Topology obj's underlying member method code with example usage: obj.mesh_rank() and returns: len