code: def test_constant_promotion_mixed():
      filename = os.path.join(
          jpeg_folder, "241", "cute-4074304_1280.jpg"
      )
      file_contents = np.fromfile(filename, dtype=np.uint8)
      pipe = Pipeline(1, 3, 0)
      with pipe:
          jpegs, _ = fn.readers.file(files=[filename])
          from_reader = fn.decoders.image(jpegs, device="mixed")
          from_constant = fn.decoders.image(
              file_contents, device="mixed"
          )
          pipe.set_outputs(from_constant, from_reader)
      pipe.build()
      from_reader, from_constant = pipe.run()
      check_batch(from_reader, from_constant, 1)
  
imports: import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import nvidia.dali.ops
  import nvidia.dali.types
  import os
  from nvidia.dali import Pipeline
  from test_utils import check_batch
  from test_utils import get_dali_extra_path
label_desc: Use image node_id 9 for calling a global function with example usage: test_constant_promotion_mixed() without return types