code: def test_bbox():
      fig, ax = plt.subplots()
      with io.BytesIO() as buf:
          fig.savefig(buf, format="eps")
          buf = buf.getvalue()
  
      bb = re.search(
          b"^%%BoundingBox: (.+) (.+) (.+) (.+)$", buf, re.MULTILINE
      )
      assert bb
      hibb = re.search(
          b"^%%HiResBoundingBox: (.+) (.+) (.+) (.+)$",
          buf,
          re.MULTILINE,
      )
      assert hibb
  
      for i in range(1, 5):
          # BoundingBox must use integers, and be ceil/floor of the hi res.
          assert b"." not in bb.group(i)
          assert int(bb.group(i)) == pytest.approx(
              float(hibb.group(i)), 1
          )
  
imports: from collections import Counter
  from pathlib import Path
  import io
  import re
  import tempfile
  import numpy
  import pytest
  from matplotlib import cbook, path, patheffects, font_manager
  from matplotlib.figure import Figure
  from matplotlib.patches import Ellipse
  from matplotlib.testing._markers import needs_ghostscript, needs_usetex
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
  import matplotlib
  import matplotlib.collections
  import matplotlib.colors
  import matplotlib.pyplot
label_desc: Use image node_id 6 for calling a global function with example usage: test_bbox() without return types