code: def _get_net_argument(op, net_name):
      for arg in op.arg:
          if arg.name and arg.name == net_name:
              assert arg.n, (
                  "Expected non empty net argument " + net_name
              )
              return arg.n
      return None
  
file_path: pytorch/caffe2/python/control_ops_grad.py
imports: from caffe2.proto import caffe2_pb2
label_desc: Use image node_id 8 for calling a global function with example usage: _get_net_argument(op, net_name) and returns: None, arg