class_docstr: Plotting object allows for visualization of absolute group bias metrics and
  relative disparities calculated by Aequitas Group(), Bias(), and Fairness()
  class instances.
docstr: Determine the brightness of background color in a plot.
  
  Adapted from https://trendct.org/2016/01/22/how-to-choose-a-label-color-to-contrast-with-background/
code: def _check_brightness(rgb_tuple):
      """
      Determine the brightness of background color in a plot.
  
      Adapted from https://trendct.org/2016/01/22/how-to-choose-a-label-color-to-contrast-with-background/
      """
      r, g, b = rgb_tuple
      return (r * 299 + g * 587 + b * 114) / 1000
  
imports: import logging
  import math
  import numpy
  import collections
  import seaborn
  import matplotlib.pyplot
  import matplotlib.colors
  import matplotlib.cm
  from aequitas import squarify_flipped
label_desc: Use image node_id 3 for calling the Plot obj's underlying member method code with example usage: obj._check_brightness(rgb_tuple) and returns: unknown