code: def apply_sharding(
      self,
      num_of_instances: int,
      instance_id: int,
      sharding_group: SHARDING_PRIORITIES,
  ):
      raise NotImplementedError
  
file_path: pytorch/torch/utils/data/datapipes/iter/sharding.py
imports: from typing import Dict, Sized, Tuple
  from torch.utils.data.datapipes._decorator import functional_datapipe
  from torch.utils.data.datapipes.datapipe import IterDataPipe
  from enum import IntEnum
label_desc: Use image node_id 1 for calling the _ShardingIterDataPipe obj's underlying member method code with example usage: obj.apply_sharding(num_of_instances, instance_id, sharding_group) without return types