code: def test_init_and_fit_kwargs():
      data = pd.DataFrame(
          {
              "x": np.arange(11),
              "y": [0, 0, 0, 0.05, 0.25, 0.5, 0.75, 0.95, 1, 1, 1],
          }
      )
  
      p = (
          ggplot(data, aes("x", "y"))
          + geom_point()
          + geom_smooth(
              method="glm",
              method_args={
                  "family": sm.families.Binomial(),  # init parameter
                  "method": "minimize",  # fit parameter
              },
              se=False,
          )
      )
  
      assert p == "init_and_fit_kwargs"
  
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 12 for calling a global function with example usage: test_init_and_fit_kwargs() without return types