code: def convert_6_channels_to_rgb(channels):
      """Convert 6-channel image from DeepVariant to RGB for quick visualization.
  
      The 6 channels are: "read base", "base quality", "mapping quality", "strand",
      "supports variant", "base != reference".
  
      Args:
        channels: a list of 6 numpy arrays.
  
      Returns:
        3D numpy array of 3 colors (Red, green, blue).
      """
      base = channels[0]
      # qual is the minimum of base quality and mapping quality at each position
      # 254 is the max value for quality scores because the SAM specification has
      # 255 reserved for unavailable values.
      qual = np.minimum(channels[1], channels[2])
      strand = channels[3]
      # alpha is <supports variant> * <base != reference>
      alpha = np.multiply(channels[4] / 254.0, channels[5] / 254.0)
      return (
          np.multiply(np.stack([base, qual, strand]), alpha)
          .astype(np.uint8)
          .transpose([1, 2, 0])
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import enum
  import math
  from typing import List, NamedTuple, Tuple
  from etils import epath
  from IPython import display
  import numpy
  from PIL import Image
  from PIL import ImageDraw
  from third_party.nucleus.protos import variants_pb2
label_desc: Use image node_id 4 for calling a global function with example usage: convert_6_channels_to_rgb(channels) and returns: np