code: def blob_uses(net, blob):
      u = []
      for i, op in enumerate(net.op):
          if blob in op.input or blob in op.control_input:
              u.append(i)
      return u
  
imports: import copy
  import logging
  from collections import defaultdict
  import numpy
  from caffe2.python import core, utils
  from caffe2.python.fb import hardcode_scale_zp
label_desc: Use image node_id 2 for calling a global function with example usage: blob_uses(net, blob) and returns: u