code: def test_plot_glass_brain_file_output(img_3d_mni, tmp_path):
      """Smoke-test for hemispheric glass brain with file output."""
      filename = tmp_path / "test.png"
      plot_glass_brain(
          img_3d_mni,
          output_file=filename,
          display_mode="lzry",
      )
      plt.close()
  
file_path: nilearn/nilearn/plotting/tests/test_img_plotting/test_plot_glass_brain.py
imports: import matplotlib.pyplot
  import numpy
  import pytest
  from nibabel import Nifti1Image
  from nilearn.image import get_data
  from nilearn.plotting import plot_glass_brain
label_desc: Use image node_id 2 for calling a global function with example usage: test_plot_glass_brain_file_output(img_3d_mni, tmp_path) without return types