code: def safe_np_dump(obj):
      if has_numpy:
          if isinstance(obj, np.integer):
              return int(obj)
          elif isinstance(obj, np.floating):
              return float(obj)
          elif isinstance(obj, np.ndarray):
              return obj.tolist()
      return obj
  
label_desc: Use image node_id 1 for calling a global function with example usage: safe_np_dump(obj) and returns: obj, int, float, obj