code: def _get_model_parallel_world_size():
      """Return world size for the model parallel group."""
      global mpu
      if mpu is not None:
          return mpu.get_model_parallel_world_size()
      return 1
  
imports: from deepspeed import comm
  from deepspeed.utils import log_dist
  from deepspeed.utils.exceptions import DeprecatedException
label_desc: Use image node_id 24 for calling a global function with example usage: _get_model_parallel_world_size() and returns: int, mpu