code: def _validate_indices(self, pp_index, tp_index):
      assert pp_index is None or pp_index < self.pp_degree
      assert tp_index is None or tp_index < self.tp_degree
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/deepspeed/checkpoint/reshape_meg_2d.py
imports: from .reshape_utils import partition_data
label_desc: Use image node_id 6 for calling the meg_2d_parallel_map obj's underlying member method code with example usage: obj._validate_indices(pp_index, tp_index) without return types