code: def _distort_image_color(image, order=0):
      with tf.name_scope("distort_color"):
          image = tf.math.multiply(image, 1.0 / 255.0)
          brightness = lambda img: tf.image.random_brightness(
              img, max_delta=32.0 / 255.0
          )
          saturation = lambda img: tf.image.random_saturation(
              img, lower=0.5, upper=1.5
          )
          hue = lambda img: tf.image.random_hue(img, max_delta=0.2)
          contrast = lambda img: tf.image.random_contrast(
              img, lower=0.5, upper=1.5
          )
          if order == 0:
              ops = [brightness, saturation, hue, contrast]
          else:
              ops = [brightness, contrast, saturation, hue]
          for op in ops:
              image = op(image)
          # The random_* ops do not necessarily clamp the output range
          image = tf.clip_by_value(image, 0.0, 1.0)
          # Restore the original scaling
          image = tf.multiply(image, 255.0)
          return image
  
imports: import tensorflow
  import sys
  import os
  import numpy
  from subprocess import call
  import horovod.tensorflow.keras
  from nvidia.dali.pipeline import pipeline_def
  import nvidia.dali.fn
  import nvidia.dali.types
  import nvidia.dali.tfrecord
label_desc: Use image node_id 4 for calling a global function with example usage: _distort_image_color(image, order) and returns: image