code: def _sizes_all_same(groups):
      """all groups have same length"""
      all_same = True
      for g in groups:
          if len(g) != len(groups[0]):
              return False
      return all_same
  
file_path: deepspeed/deepspeed/runtime/zero/mics_utils.py
imports: import os
  from dataclasses import dataclass
  from typing import List
  import numpy
  import torch
  from torch import Tensor
  from deepspeed import comm
  from deepspeed.accelerator import get_accelerator
  from deepspeed.utils import logger
label_desc: Use image node_id 5 for calling a global function with example usage: _sizes_all_same(groups) and returns: all_same, False