code: def _assert_contiguous_submeshes(self, global_device_mesh):
      global_mesh = Mesh(
          global_device_mesh, list(range(global_device_mesh.ndim))
      )
      max_process_index = max(
          d.process_index for d in global_device_mesh.flatten()
      )
      for p_idx in range(max_process_index + 1):
          # Raises an error if non-contiguous
          global_mesh._local_mesh(p_idx)
  
imports: import collections
  from collections.abc import Sequence
  import dataclasses
  import numpy
  from absl import logging
  from absl.testing import absltest
  from absl.testing import parameterized
  from jax.experimental import mesh_utils
  from jax.sharding import Mesh
  from jax._src import test_util
label_desc: Use image node_id 7 for calling the MeshUtilsTest obj's underlying member method code with example usage: obj._assert_contiguous_submeshes(global_device_mesh) without return types