code: def bgr_to_rgb(input, name=None):
      """
      Convert a BGR 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.
      """
      bgr = tf.unstack(input, axis=-1)
      b, g, r = bgr[0], bgr[1], bgr[2]
      return tf.stack([r, g, b], axis=-1)
  
imports: import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: bgr_to_rgb(input, name) and returns: tf