code: def _gen_list_of_colors_from_iterable(
      color: Collection[Color],
  ) -> Iterator[Color]:
      """
      Yield colors from string of several letters or from collection of colors.
      """
      for x in color:
          if _is_single_color(x):
              yield x
          else:
              raise ValueError(f"Invalid color {x}")
  
imports: from __future__ import annotations
  import itertools
  from typing import TYPE_CHECKING, Collection, Iterator, cast
  import warnings
  import matplotlib
  import matplotlib.colors
  import numpy
  from pandas._typing import MatplotlibColor
  from pandas.util._exceptions import find_stack_level
  from pandas.core.dtypes.common import is_list_like
  import pandas.core.common
label_desc: Use image node_id 8 for calling a global function with example usage: _gen_list_of_colors_from_iterable(color) without return types