code: def test_legend_fill_ratio():
      p = (
          ggplot(linear_data, aes("x", color="x<0.5"))
          + geom_point(aes(y="y_noisy"))
          + geom_smooth(
              aes(y="y_noisy"), method="lm", size=0.5, span=0.3
          )
      )
  
      assert p == "legend_fill_ratio"
  
imports: import numpy
  import pandas
  import pytest
  import statsmodels.api
  from plotnine import aes, coord_trans, geom_point, geom_smooth, ggplot, stat_smooth
  from plotnine.exceptions import PlotnineWarning
label_desc: Use image node_id 11 for calling a global function with example usage: test_legend_fill_ratio() without return types