code: def _containerize(value):
      """Converts values to types supported by weakref."""
      if isinstance(value, (int, float, np.generic)):
          return np.array(value)
      return value
  
imports: import collections
  import weakref
  import numpy
  import tensorflow.compat.v2
  from tensorflow.python.util import nest
label_desc: Use image node_id 2 for calling a global function with example usage: _containerize(value) and returns: value, np