code: def ydbdr_to_rgb(input, name=None):
      """
      Convert a YDbDr image to RGB.
  
      Args:
        input: A 3-D (`[H, W, 3]`) or 4-D (`[N, H, W, 3]`) Tensor.
        name: A name for the operation (optional).
  
      Returns:
        A 3-D (`[H, W, 3]`) or 4-D (`[N, H, W, 3]`) Tensor.
      """
      input = tf.convert_to_tensor(input)
      assert input.dtype in (tf.float16, tf.float32, tf.float64)
  
      # inv of:
      # [[    0.299,   0.587,    0.114],
      #  [   -0.45 ,  -0.883,    1.333],
      #  [   -1.333,   1.116,    0.217]]
      kernel = tf.constant(
          [
              [1.00000000e00, 9.23037161e-05, -5.25912631e-01],
              [1.00000000e00, -1.29132899e-01, 2.67899328e-01],
              [1.00000000e00, 6.64679060e-01, -7.92025435e-05],
          ],
          input.dtype,
      )
  
      return tf.tensordot(
          input, tf.transpose(kernel), axes=((-1,), (0,))
      )
  
imports: import tensorflow
label_desc: Use image node_id 10 for calling a global function with example usage: ydbdr_to_rgb(input, name) and returns: tf