code: def normalize_value(value: object) -> t.Any:
      """Take an object and return a JSON-safe representation of it.
  
      Parameters
      ----------
      value : object
          value to normilize
  
      Returns
      -------
      Any of the basic builtin datatypes
      """
      if isinstance(value, pd.DataFrame):
          return value.to_json(orient="records")
      elif isinstance(value, Styler):
          return value.data.to_json(orient="records")
      elif isinstance(value, (np.generic, np.ndarray)):
          return un_numpy(value)
      else:
          return Pickler(unpicklable=False).flatten(value)
  
imports: import io
  import json
  import textwrap
  import typing
  from contextlib import contextmanager
  import matplotlib
  import matplotlib.pyplot
  import numpy
  import pandas
  import plotly.io._html
  from ipywidgets import DOMWidget
  from jsonpickle.pickler import Pickler
  from pandas.io.formats.style import Styler
  from plotly.io._utils import plotly_cdn_url
  from plotly.offline.offline import get_plotlyjs
  from deepchecks.core import check_result
  from deepchecks.core import errors
  from deepchecks.utils.dataframes import hide_index_for_display, un_numpy
  from deepchecks.utils.html import linktag
  from deepchecks.utils.strings import truncate_string
label_desc: Use image node_id 4 for calling a global function with example usage: normalize_value(value) and returns: value, value, un_numpy, Pickler