code: def _to_np_array(value):
      if not isinstance(value, np.ndarray):
          value = np.array(value)
  
      return value
  
imports: import json
  import numpy
  from ..errors import UsageError
  from ..utilities.dicts import merge_dicts
  from attr import attrs, attrib
label_desc: Use image node_id 2 for calling a global function with example usage: _to_np_array(value) and returns: value