code: def test_objective_eager_resize():
      from nvidia.dali._utils import eager_utils
  
      resize_class = eager_utils._eager_op_object_factory(
          ops.python_op_factory("Resize"), "Resize"
      )
      tl = tensors.TensorListCPU(
          np.random.default_rng().integers(
              256, size=(8, 200, 200, 3), dtype=np.uint8
          )
      )
  
      obj_resize = resize_class(resize_x=50, resize_y=50)
      out_obj = obj_resize(tl)
      out_fun = eager.resize(tl, resize_x=50, resize_y=50)
  
      assert np.array_equal(out_obj.as_tensor(), out_fun.as_tensor())
  
file_path: DALI/dali/test/python/test_eager_operators.py
imports: import numpy
  import os
  from nvidia.dali import fn
  from nvidia.dali import pipeline_def
  from nvidia.dali import ops
  from nvidia.dali import tensors
  from nvidia.dali.experimental import eager
  from nose_utils import assert_raises, raises
  from test_utils import get_dali_extra_path
label_desc: Use image node_id 9 for calling a global function with example usage: test_objective_eager_resize() without return types