code: def _raw_cuda_stream(stream_obj):
      if stream_obj is None:
          return None
      elif hasattr(stream_obj, "cuda_stream"):  # torch
          return stream_obj.cuda_stream
      elif hasattr(stream_obj, "ptr"):  # cupy
          return stream_obj.ptr
      else:
          return stream_obj
  
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 13 for calling a global function with example usage: _raw_cuda_stream(stream_obj) and returns: None, stream_obj, stream_obj, stream_obj