code: def _check_patches_all_filled(
      axes: Axes | Sequence[Axes], filled: bool = True
  ) -> None:
      """
      Check for each artist whether it is filled or not
  
      Parameters
      ----------
      axes : matplotlib Axes object, or its list-like
      filled : bool
          expected filling
      """
  
      axes = _flatten_visible(axes)
      for ax in axes:
          for patch in ax.patches:
              assert patch.fill == filled
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import numpy
  from pandas.core.dtypes.api import is_list_like
  import pandas
  from pandas import Series
  import pandas._testing
label_desc: Use image node_id 5 for calling a global function with example usage: _check_patches_all_filled(axes, filled) without return types