code: def YUV2RGB(yuv):
      yuv = np.multiply(yuv, 255)
      m = np.array(
          [
              [1.0, 1.0, 1.0],
              [
                  -0.000007154783816076815,
                  -0.3441331386566162,
                  1.7720025777816772,
              ],
              [
                  1.4019975662231445,
                  -0.7141380310058594,
                  0.00001542569043522235,
              ],
          ]
      )
      rgb = np.dot(yuv, m)
      rgb[:, :, 0] -= 179.45477266423404
      rgb[:, :, 1] += 135.45870971679688
      rgb[:, :, 2] -= 226.8183044444304
      return rgb
  
imports: import os
  import numpy
  from nvidia.dali import pipeline_def
  import nvidia.dali.fn
  import nvidia.dali.types
label_desc: Use image node_id 1 for calling a global function with example usage: YUV2RGB(yuv) and returns: rgb