code: def cupy_adapter(fun, in1, in2):
      tin1 = [cupy.fromDlpack(dltensor) for dltensor in in1]
      tin2 = [cupy.fromDlpack(dltensor) for dltensor in in2]
      tout1, tout2 = fun(tin1, tin2)
      return [tout.toDlpack() for tout in tout1], [
          tout.toDlpack() for tout in tout2
      ]
  
imports: import numpy
  import nvidia.dali.ops
  import nvidia.dali.types
  import os
  import random
  from functools import partial
  from nvidia.dali.pipeline import Pipeline
  from nvidia.dali import fn, pipeline_def
  from nvidia.dali.python_function_plugin import current_dali_stream
label_desc: Use image node_id 22 for calling a global function with example usage: cupy_adapter(fun, in1, in2) and returns: unknown,  unknown