code: def _to_python(value):
      vtype = type(value)
  
      if issubclass(vtype, _LIST_TYPES):
          ctype = value.type_constructor
  
          if ctype in _PRIMITIVE_TYPES:
              return [ctype(v) for v in value], True
  
          ctype = _SCALAR_FIELD_TYPES_MAP.get(ctype, None)
          if ctype is not None:
              return [ctype(v) for v in value], True
  
          return None, False
  
      if vtype in _PRIMITIVE_TYPES:
          return value, True
  
      vtype = _SCALAR_FIELD_TYPES_MAP.get(vtype, None)
      if vtype is not None:
          return vtype(value), True
  
      return None, False
  
imports: import logging
  import os
  import warnings
  import numpy
  import eta.core.utils
  import fiftyone.core.utils
  import fiftyone.utils.data
  import pydicom
  from pydicom.fileset import FileInstance, FileSet
label_desc: Use image node_id 2 for calling a global function with example usage: _to_python(value) and returns: None,  False, None,  False, value,  True, vtype,  True, unknown,  True, unknown,  True