code: def test_only_on_non_finite_bbox():
      fig, ax = plt.subplots()
      ax.annotate("", xy=(0, float("nan")))
      ax.set_axis_off()
      # we only need to test that it does not error out on save
      fig.savefig(BytesIO(), bbox_inches="tight", format="png")
  
file_path: matplotlib/lib/matplotlib/tests/test_bbox_tight.py
imports: from io import BytesIO
  import numpy
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  import matplotlib.path
  import matplotlib.patches
  from matplotlib.ticker import FuncFormatter
label_desc: Use image node_id 8 for calling a global function with example usage: test_only_on_non_finite_bbox() without return types