code: def test_nonlinear_containment():
      fig, ax = plt.subplots()
      ax.set(xscale="log", ylim=(0, 1))
      polygon = ax.axvspan(1, 10)
      assert polygon.get_path().contains_point(
          ax.transData.transform((5, 0.5)), polygon.get_transform()
      )
      assert not polygon.get_path().contains_point(
          ax.transData.transform((0.5, 0.5)), polygon.get_transform()
      )
      assert not polygon.get_path().contains_point(
          ax.transData.transform((50, 0.5)), polygon.get_transform()
      )
  
imports: import re
  import numpy
  from numpy.testing import assert_array_equal
  import pytest
  from matplotlib import patches
  from matplotlib.path import Path
  from matplotlib.patches import Polygon
  from matplotlib.testing.decorators import image_comparison
  import matplotlib.pyplot
  from matplotlib import transforms
  from matplotlib.backend_bases import MouseEvent
label_desc: Use image node_id 10 for calling a global function with example usage: test_nonlinear_containment() without return types