code: def get_python_class_slot_types(class_type):
      if hasattr(class_type, "__slots__"):
          if len(class_type.__slots__) != len(
              class_type.__slot_types__
          ):
              raise RuntimeError(
                  "__slots__ and __slot_types__ length mismatch"
              )
          return [get_type_info(x) for x in class_type.__slot_types__]
      else:
          return []
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/mil/mil/types/get_type_info.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from .type_spec import *
  from .type_void import void
label_desc: Use image node_id 5 for calling a global function with example usage: get_python_class_slot_types(class_type) and returns: unknown, list