code: def ycbcr2rgb(input_tensor):
      # Conversion from YCbCr to RGB according to
      # https://en.wikipedia.org/wiki/YCbCr/16?section=6#JPEG_conversion
      # Expecting batch of YCbCr images with values in [0, 255]
  
      y = input_tensor[:, 0, :, :]
      cb = input_tensor[:, 1, :, :]
      cr = input_tensor[:, 2, :, :]
  
      r = y + 1.402 * (cr - 128)
      g = y - 0.344136 * (cb - 128) - 0.714136 * (cr - 128)
      b = y + 1.772 * (cb - 128)
      r = torch.unsqueeze(r, 1)
      g = torch.unsqueeze(g, 1)
      b = torch.unsqueeze(b, 1)
  
      return torch.clamp(torch.cat((r, g, b), 1), 0, 255)
  
file_path: DALI/docs/examples/use_cases/video_superres/model/model.py
imports: import time
  import scipy.misc
  import numpy
  from math import floor, log
  import torch
  import torch.nn
  from torch.nn import init
  from torch.autograd import Variable
  from torch.nn.functional import upsample
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: ycbcr2rgb(input_tensor) and returns: torch