code: def pytest_unconfigure(config):
      matplotlib._called_from_pytest = False
  
file_path: matplotlib/lib/matplotlib/testing/conftest.py
imports: import pytest
  import sys
  import matplotlib
  from matplotlib import _api
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_unconfigure(config) without return types