code: def get_local_machine_id(server_namebook):
      """Get machine ID via server_namebook"""
      assert (
          len(server_namebook) > 0
      ), "server_namebook cannot be empty."
  
      res = 0
      for ID, data in server_namebook.items():
          machine_id = data[0]
          ip = data[1]
          if ip in local_ip4_addr_list():
              res = machine_id
              break
  
      return res
  
imports: import os
  import argparse
  import time
  import logging
  import socket
  import dgl
  import dgl.backend
  import torch.multiprocessing
  from .train_pytorch import load_model, dist_train_test
  from .utils import get_compatible_batch_size, CommonArgParser
  from .train import prepare_save_path
  from .dataloader import TrainDataset, NewBidirectionalOneShotIterator
  from .dataloader import get_partition_dataset
label_desc: Use image node_id 3 for calling a global function with example usage: get_local_machine_id(server_namebook) and returns: res