code: def test_infinite_rects():
      data = pd.DataFrame({"x": range(10), "y": range(10)})
      rdata = pd.DataFrame(
          {
              "xmin": [3],
              "xmax": 7,
              "ymin": -np.inf,
              "ymax": np.inf,
          }
      )
  
      p = (
          ggplot(data, aes("x", "y"))
          + geom_point()
          + geom_rect(
              data=rdata,
              mapping=aes(
                  xmin="xmin", xmax="xmax", ymin="ymin", ymax="ymax"
              ),
              alpha=0.2,
              inherit_aes=False,
          )
      )
  
      assert p == "infinite-rects"
  
file_path: plotnine/tests/test_geom_rect_tile.py
imports: import numpy
  import pandas
  from plotnine import aes, coord_trans, geom_point, geom_rect, geom_tile, ggplot, labs
label_desc: Use image node_id 4 for calling a global function with example usage: test_infinite_rects() without return types