code: def _get_geometry(fig):
      try:
          return (
              fig.axes[0].get_subplotspec().get_geometry()
          )  # pragma: no cover
      except AttributeError:  # MPL < 3.4 (probably)
          return fig.axes[0].get_geometry()
  
imports: import sys
  from pathlib import Path
  import matplotlib.pyplot
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal, assert_equal
  from mne import Annotations, Epochs, make_fixed_length_events, pick_types, read_cov, read_events
  from mne.io import read_raw_fif
  from mne.preprocessing import ICA, create_ecg_epochs, create_eog_epochs
  from mne.utils import _record_warnings, catch_logging
  from mne.viz.ica import _create_properties_layout, plot_ica_properties
  from mne.viz.utils import _fake_click, _fake_keypress
label_desc: Use image node_id 9 for calling a global function with example usage: _get_geometry(fig) and returns: fig, fig