code: def _cupy_stream_wrapper(function, *inputs):
      stream = cupy.cuda.Stream(null=True)
      stream.ptr = PythonFunction.current_stream().ptr
      with stream:
          out = function(*inputs)
      stream.ptr = 0
      return out
  
imports: import nvidia.dali.python_function_plugin
  from nvidia.dali import backend
  from nvidia.dali import ops
  from nvidia.dali.ops import _registry
  from nvidia.dali.data_node import DataNode
  from nvidia.dali.pipeline import Pipeline
  from nvidia.dali.types import CUDAStream
label_desc: Use image node_id 6 for calling the PythonFunction obj's underlying member method code with example usage: obj._cupy_stream_wrapper(function) and returns: out