code: def test_mixed_devices_decoder():
      """Tests hidden functionality of exposing eager operators as classes."""
      seed = 42
      batch_size = 8
      file_root = os.path.join(get_dali_extra_path(), "db/single/jpeg")
  
      pipe = mixed_image_decoder_pipeline(
          file_root, seed, batch_size=batch_size
      )
      pipe.build()
      (pipe_out,) = pipe.run()
  
      jpeg, _ = next(
          eager.readers.file(
              file_root=file_root, batch_size=batch_size, seed=seed
          )
      )
      eager_out = eager.decoders.image(jpeg, device="gpu")
  
      assert len(pipe_out) == len(eager_out)
  
      with eager.arithmetic():
          for comp_tensor in pipe_out == eager_out:
              assert np.all(comp_tensor.as_cpu())
  
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 11 for calling a global function with example usage: test_mixed_devices_decoder() without return types