code: def test_frame_info(capsys, monkeypatch):
      """Test _frame_info."""
      stack = _frame_info(100)
      assert 2 < len(stack) < 100
      this, pytest_line = stack[:2]
      assert (
          re.match("^test_logging:[1-9][0-9]$", this) is not None
      ), this
      assert "pytest" in pytest_line
      capsys.readouterr()
      with use_log_level("debug", add_frames=4):
          _fun()
      out, _ = capsys.readouterr()
      out = out.replace("\n", " ")
      assert (
          re.match(
              ".*pytest"
              ".*test_logging:[2-9][0-9] "
              ".*test_logging:[1-9][0-9] :.*Test",
              out,
          )
          is not None
      ), this
      monkeypatch.setattr("inspect.currentframe", lambda: None)
      assert _frame_info(1) == ["unknown"]
  
imports: import logging
  import os
  import re
  import warnings
  from pathlib import Path
  import numpy
  import pytest
  from mne import Epochs, create_info, read_evokeds
  from mne.io import RawArray, read_raw_fif
  from mne.parallel import parallel_func
  from mne.utils import _get_call_line, catch_logging, check, filter_out_warnings, logger, set_log_file, set_log_level, use_log_level, verbose, warn
  from mne.utils._logging import _frame_info
label_desc: Use image node_id 2 for calling a global function with example usage: test_frame_info(capsys, monkeypatch) without return types