code: def pytest_configure(config):
      """Use Agg so that no figures pop up."""
      if matplotlib is not None:
          matplotlib.use("Agg", force=True)
  
imports: import warnings
  import nibabel
  import numpy
  import pytest
  from nibabel import Nifti1Image
  from nilearn import image
  from nilearn.datasets.tests._testing import request_mocker
  from nilearn.datasets.tests._testing import temp_nilearn_data_dir
  from nilearn.experimental.surface.tests.conftest import make_mini_img, mini_img, mini_mesh
label_desc: Use image node_id 1 for calling a global function with example usage: pytest_configure(config) without return types