code: def test_pathclip():
      np.random.seed(19680801)
      mpl.rcParams.update(
          {"font.family": "serif", "pgf.rcfonts": False}
      )
      fig, axs = plt.subplots(1, 2)
  
      axs[0].plot([0.0, 1e100], [0.0, 1e100])
      axs[0].set_xlim(0, 1)
      axs[0].set_ylim(0, 1)
  
      axs[1].scatter([0, 1], [1, 1])
      axs[1].hist(np.random.normal(size=1000), bins=20, range=[-10, 10])
      axs[1].set_xscale("log")
  
      fig.savefig(BytesIO(), format="pdf")
  
imports: import datetime
  from io import BytesIO
  import os
  import shutil
  import numpy
  from packaging.version import parse
  import pytest
  import matplotlib
  import matplotlib.pyplot
  from matplotlib.testing import _has_tex_package, _check_for_pgf
  from matplotlib.testing.exceptions import ImageComparisonFailure
  from matplotlib.testing.compare import compare_images
  from matplotlib.backends.backend_pgf import PdfPages
  from matplotlib.testing.decorators import _image_directories, check_figures_equal, image_comparison
  from matplotlib.testing._markers import needs_ghostscript, needs_pgf_lualatex, needs_pgf_pdflatex, needs_pgf_xelatex
label_desc: Use image node_id 7 for calling a global function with example usage: test_pathclip() without return types