code: def check_outputs(outputs, num_outputs):
      if num_outputs > 1:
          if not isinstance(outputs, tuple):
              raise TypeError(
                  "The output from a multi-output Python"
                  "function operator must be a tuple, got: ",
                  type(outputs),
              )
          if len(outputs) != num_outputs:
              raise ValueError(
                  f"Unexpected number of outputs from Python"
                  f"function operator - got {len(outputs)}, expected {num_outputs}"
              )
  
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 2 for calling the PythonFunction obj's underlying member method code with example usage: obj.check_outputs(outputs, num_outputs) without return types