code: def run(rank, world_size, func_exec, params, backend="gloo"):
      """
      Init. function which is run by each process in the Gloo ProcessGroup
  
      Parameters:
      -----------
      rank : integer
          rank of the process
      world_size : integer
          number of processes configured in the Process Group
      proc_exec : function name
          function which will be invoked which has the logic for each process in the group
      params : argparser object
          argument parser object to access the command line arguments
      backend : string
          string specifying the type of backend to use for communication
      """
      os.environ["MASTER_ADDR"] = "127.0.0.1"
      os.environ["MASTER_PORT"] = "29500"
  
      # create Gloo Process Group
      dist.init_process_group(
          backend,
          rank=rank,
          world_size=world_size,
          timeout=timedelta(seconds=5 * 60),
      )
  
      # Invoke the main function to kick-off each process
      func_exec(rank, world_size, params)
  
imports: import gc
  import logging
  import math
  import os
  import sys
  from datetime import timedelta
  from timeit import default_timer
  import constants
  import dgl
  import numpy
  import torch
  import torch.distributed
  import torch.multiprocessing
  from convert_partition import create_dgl_object, create_metadata_json
  from dataset_utils import get_dataset
  from dist_lookup import DistLookupService
  from globalids import assign_shuffle_global_nids_edges, assign_shuffle_global_nids_nodes, lookup_shuffle_global_nids_edges
  from gloo_wrapper import allgather_sizes, alltoallv_cpu, gather_metadata_json
  from utils import augment_edge_data, DATA_TYPE_ID, get_edge_types, get_etype_featnames, get_gid_offsets, get_gnid_range_map, get_idranges, get_node_types, get_ntype_counts_map, get_ntype_featnames, map_partid_rank, memory_snapshot, read_json, read_ntype_partition_files, REV_DATA_TYPE_ID, write_dgl_objects, write_metadata_json
label_desc: Use image node_id 10 for calling a global function with example usage: run(rank, world_size, func_exec, params, backend) without return types