code: def pytorch_case(fun, device):
      common_case(
          pytorch_wrapper(fun), device, partial(pytorch_compare, fun)
      )
  
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 9 for calling a global function with example usage: pytorch_case(fun, device) without return types