code: def _flatten_visible(axes: Axes | Sequence[Axes]) -> Sequence[Axes]:
      """
      Flatten axes, and filter only visible
  
      Parameters
      ----------
      axes : matplotlib Axes object, or its list-like
  
      """
      from pandas.plotting._matplotlib.tools import flatten_axes
  
      axes_ndarray = flatten_axes(axes)
      axes = [ax for ax in axes_ndarray if ax.get_visible()]
      return axes
  
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 12 for calling a global function with example usage: _flatten_visible(axes) and returns: axes