code: def _is_floats_color(color: Color | Collection[Color]) -> bool:
      """Check if color comprises a sequence of floats representing color."""
      return bool(
          is_list_like(color)
          and (len(color) == 3 or len(color) == 4)
          and all(isinstance(x, (int, float)) for x in color)
      )
  
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 9 for calling a global function with example usage: _is_floats_color(color) and returns: bool