code: def to_dali_type(framework_type):
      t = str(framework_type)
      if t.startswith("torch."):
          t = t[6:]
      t = _type_name_to_dali_type.get(t)
      if t is None:
          raise TypeError(
              f"'{framework_type}' could not be converted into any known DALIDataType."
          )
      return t
  
imports: from enum import Enum, unique
  import re
  from nvidia.dali._backend_enums import DALIDataType, DALIImageType, DALIInterpType
  from nvidia.dali.backend_impl.types import *
label_desc: Use image node_id 17 for calling a global function with example usage: to_dali_type(framework_type) and returns: t