code: def default(self, o):
      if isinstance(o, np.ndarray):
          return o.tolist()
      return json.JSONEncoder.default(self, o)
  
imports: import contextlib
  import functools
  import logging
  import json
  import multiprocessing
  import pickle
  from typing import Any, Dict
  from etils import epath
  import imageio
  import numpy
  import png
  import tensorflow
  from kubric import plotting
  from kubric.kubric_typing import PathLike
label_desc: Use image node_id 1 for calling the _NumpyEncoder obj's underlying member method code with example usage: obj.default(o) and returns: json, o