code: def get_network(cfg):
      if cfg.use_onenetwork:
          net = OneNetwork(cfg)
      else:
          net = timm.create_model(cfg.network, num_classes=1220 * 5)
      return net
  
imports: import os
  import time
  import timm
  import glob
  import numpy
  import os.path
  import torch
  import torch.distributed
  from torch import nn
  import torch.nn.functional
  from .iresnet import get_model
label_desc: Use image node_id 2 for calling a global function with example usage: get_network(cfg) and returns: net