code: def is_rank_0() -> bool:
      return not dist.is_initialized() or dist.get_rank() == 0
  
imports: import io
  import json
  import torch.distributed
label_desc: Use image node_id 1 for calling a global function with example usage: is_rank_0() and returns: unknown