code: def prepare_chainer(x):
      import chainer
  
      x = chainer.cuda.to_cpu(x.data)
      return x
  
file_path: pytorch-tensorboardx/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 7 for calling a global function with example usage: prepare_chainer(x) and returns: x