class_docstr: Convert an image from RGB to YUV422.
  
  The image data is assumed to be in the range of (0, 1). Width evenly disvisible by 2.
  
  Returns:
      YUV422 version of the image.
  
  Shape:
      - image: :math:`(*, 3, H, W)`
      - output: :math:`(*, 1, H, W)` and :math:`(*, 2, H, W/2)`
  
  Examples:
      >>> yuvinput = torch.rand(2, 3, 4, 6)
      >>> yuv = RgbToYuv422()
      >>> output = yuv(yuvinput)  # # (2x1x4x6, 2x2x4x3)
  
  Reference::
      [1] https://es.wikipedia.org/wiki/YUV#RGB_a_Y'UV
class_docstr_tok: ["Convert","an","image","from","RGB","to","YUV422",".","The","image","data","is","assumed","to","be","in","the","range","of","(","0",",","1",")",".","Width","evenly","disvisible","by","2",".","Returns",":","YUV422","version","of","the","image",".","Shape",":","-","image",":",":","math",":","`","(","*",",","3",",","H",",","W",")","`","-","output",":",":","math",":","`","(","*",",","1",",","H",",","W",")","`","and",":","math",":","`","(","*",",","2",",","H",",","W\/2",")","`","Examples",":",">",">",">","yuvinput","=","torch.rand","(","2",",","3",",","4",",","6",")",">",">",">","yuv","=","RgbToYuv422","(",")",">",">",">","output","=","yuv","(","yuvinput",")","#","#","(","2x1x4x6",",","2x2x4x3",")","Reference",":",":","[","1","]","https",":","\/\/es.wikipedia.org\/wiki\/YUV","#","RGB_a_Y'UV"]
code: def forward(
      self, yuvinput: torch.Tensor
  ) -> Tuple[torch.Tensor, torch.Tensor]:  # skipcq: PYL-R0201
      return rgb_to_yuv422(yuvinput)
  
imports: from typing import Tuple
  import torch
  from torch import nn
label_desc: Use image node_id 1 for calling the RgbToYuv422 obj's underlying member method code with example usage: obj.forward(yuvinput) and returns: rgb_to_yuv422