code: def test_color_twist_default_dtype():
      np_types = [
          types.FLOAT,
          types.INT32,
          types.INT16,
          types.UINT8,
      ]  # Just some types
  
      def impl(op, device, type):
          @pipeline_def(batch_size=1, num_threads=3, device_id=0)
          def pipeline():
              data = types.Constant(
                  255, shape=(10, 10, 3), dtype=type, device=device
              )
              return op(data)
  
          pipe = pipeline()
          pipe.build()
          (data,) = pipe.run()
          assert data[0].dtype == type, f"{data[0].dtype} != {type}"
  
      for device in ["gpu", "cpu"]:
          for type in np_types:
              for op in [fn.hue]:
                  yield impl, op, device, type
  
file_path: DALI/dali/test/python/operator_1/test_color_twist.py
imports: import math
  import numpy
  import nvidia.dali.fn
  import nvidia.dali.types
  import random
  from nvidia.dali import pipeline_def
  from sequences_test_utils import ArgCb, video_suite_helper
  from test_utils import RandomDataIterator
label_desc: Use image node_id 9 for calling a global function with example usage: test_color_twist_default_dtype() and returns: op