code: def __init__(self, only_repr=False, runtime=False):
      # this dictionary holds all the supported functions
      import reprlib
      import pprint
  
      self._pretty_print = pprint
  
      r = reprlib.Repr()
      r.maxarray = 100
      r.maxstring = 100
      r.maxother = 100
      r.maxtuple = 100
      r.maxlist = 100
      r.maxlevel = 3
      self._repr = r
      self._runtime = runtime
      self._only_repr = only_repr
      self._supported_types = {
          "tuple": self._parse_tuple,
          "NoneType": self._parse_nonetype,
          "set": self._parse_set,
          "frozenset": self._parse_frozenset,
          "bytearray": self._parse_bytearray,
          "str": self._parse_str,
          "datetime.datetime": self._parse_datetime_datetime,
          "bool": self._parse_bool,
          "decimal.Decimal": self._parse_decimal_decimal,
          "type": self._parse_type,
          "range": self._parse_range,
          "pandas.core.frame.DataFrame": self._parse_pandas_dataframe,
          "numpy.ndarray": self._parse_numpy_ndarray,
          "dict": self._parse_dict,
          "float": self._parse_float,
          "complex": self._parse_complex,
          "int": self._parse_int,
          "Exception": self._parse_exception,
          "list": self._parse_list,
          "bytes": self._parse_bytes,
      }
  
imports: import json
  import sys
  import base64
  import datetime
  from collections import namedtuple
label_desc: Use image node_id 1 to create a new TaskToDict object  with example: obj = TaskToDict(only_repr, runtime)