code: def _create_mnodes_dist_context(dist_info, mnodes_conf):
      dist.init_process_group(**dist_info)
      dist.barrier()
      if torch.cuda.is_available():
          torch.cuda.device(mnodes_conf["local_rank"])
      return mnodes_conf
  
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 15 for calling a global function with example usage: _create_mnodes_dist_context(dist_info, mnodes_conf) and returns: mnodes_conf