code: def is_root_worker():
      if is_deepspeed_mode():
          return os.getenv("RANK", "0") == "0"
      return True
  
imports: import enum
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: is_root_worker() and returns: True, unknown