code: def multi_node_conf(local_rank):
      assert "node_id" in os.environ
      assert "nnodes" in os.environ
      assert "nproc_per_node" in os.environ
  
      node_id = int(os.environ["node_id"])
      nnodes = int(os.environ["nnodes"])
      nproc_per_node = int(os.environ["nproc_per_node"])
      out = {
          "world_size": nnodes * nproc_per_node,
          "rank": local_rank + node_id * nproc_per_node,
          "local_rank": local_rank,
      }
      return out
  
imports: import functools
  import os
  import shutil
  import sys
  import tempfile
  import time
  from pathlib import Path
  import pytest
  import torch
  import torch.distributed
  import ignite.distributed
label_desc: Use image node_id 14 for calling a global function with example usage: multi_node_conf(local_rank) and returns: out