code: def _to_list(func):
      def _to_list_instance(val):
          if isinstance(val, (list, tuple)):
              return [func(v) for v in val]
          else:
              return [func(val)]
  
      return _to_list_instance
  
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 1 for calling a global function with example usage: _to_list(func) and returns: _to_list_instance, unknown, list