code: def prepare_caffe2(x):
      from caffe2.python import workspace
  
      x = workspace.FetchBlob(x)
      return x
  
file_path: tensorboardX/examples/tensorboardX/x2num.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: prepare_caffe2(x) and returns: x