code: def _is_light(color):
      """Determines if a color (or each of a sequence of colors) is light (as
      opposed to dark). Based on ITU BT.601 luminance formula (see
      https://stackoverflow.com/a/596241)."""
      rgbaArr = colors.to_rgba_array(color)
      return rgbaArr[:, :3].dot((0.299, 0.587, 0.114)) > 0.5
  
imports: import matplotlib
  from matplotlib import colors
  from matplotlib.backends import backend_agg
  from matplotlib.backends.backend_agg import FigureCanvasAgg
  from matplotlib._pylab_helpers import Gcf
  from matplotlib.figure import Figure
  from IPython.core.interactiveshell import InteractiveShell
  from IPython.core.getipython import get_ipython
  from IPython.core.pylabtools import select_figure_formats
  from IPython.display import display
  from .config import InlineBackend
label_desc: Use image node_id 8 for calling a global function with example usage: _is_light(color) and returns: unknown