code: def test_facet_grid_space_ratios():
      p = (
          ggplot(mtcars, aes("wt", "mpg"))
          + geom_point()
          + facet_grid("am ~ vs", space={"y": [1, 2], "x": [1, 2]})
      )
      assert p == "facet_grid_space_ratios"
  
imports: import numpy
  import pandas
  from plotnine import aes, annotate, facet_grid, facet_wrap, geom_abline, geom_path, geom_point, ggplot
  from plotnine.data import mpg, mtcars
label_desc: Use image node_id 16 for calling a global function with example usage: test_facet_grid_space_ratios() without return types