code: def get_magnifier(old_size, indices):
      _l = np.zeros(old_size)
      for x in indices:
          _l[x] += 1
      magnifier = (1.0 / _l)[indices]
      return magnifier
  
imports: from .basic_model import BasicModel
  import tensorflow
  import numpy
  import copy
label_desc: Use image node_id 3 for calling a global function with example usage: get_magnifier(old_size, indices) and returns: magnifier