code: def _eager_op_base_factory(
      op_class, op_name, num_inputs, call_args_names
  ):
      class EagerOperatorBase(op_class):
          def __init__(self, *, max_batch_size, device_id, **kwargs):
              super().__init__(**kwargs)
  
              self._spec.AddArg("device_id", device_id)
              self._spec.AddArg("max_batch_size", max_batch_size)
  
              num_outputs = self.schema.CalculateOutputs(
                  self._spec
              ) + self.schema.CalculateAdditionalOutputs(self._spec)
  
              self._backend_op = _create_backend_op(
                  self._spec,
                  self._device,
                  num_inputs,
                  num_outputs,
                  call_args_names,
                  op_name,
              )
  
      return EagerOperatorBase
  
imports: import sys
  from nvidia.dali import backend
  from nvidia.dali import internal
  from nvidia.dali import ops
  from nvidia.dali import tensors
  from nvidia.dali import types
  from nvidia.dali.external_source import _prep_data_for_feed_input
label_desc: Use image node_id 32 for calling a global function with example usage: _eager_op_base_factory(op_class, op_name, num_inputs, call_args_names) and returns: EagerOperatorBase