code: def get_local_size() -> int:
      """
      Returns:
          The size of the per-machine process group,
          i.e. the number of processes per machine.
      """
      if not dist.is_available():
          return 1
      if not dist.is_initialized():
          return 1
      return dist.get_world_size(group=_LOCAL_PROCESS_GROUP)
  
file_path: pytorchvideo/pytorchvideo/layers/distributed.py
imports: import torch
  import torch.distributed
  from torch._C._distributed_c10d import ProcessGroup
  from torch.autograd.function import Function
label_desc: Use image node_id 4 for calling a global function with example usage: get_local_size() and returns: dist, int, int