code: def test_transform_dummy1(df):
      X, y = df[["a", "b", "c", "d"]], df[["e"]]
      tf = PatsyTransformer("a + b + d")
      print(tf.fit(X, y).transform(X))
      assert tf.fit(X, y).transform(X).shape == (6, 4)
  
file_path: scikit-lego/tests/test_preprocessing/test_patsy_transformer.py
imports: import numpy
  import pandas
  import pytest
  from sklearn.linear_model import LogisticRegression
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import StandardScaler
  from sklego.preprocessing import PatsyTransformer
label_desc: Use image node_id 8 for calling a global function with example usage: test_transform_dummy1(df) without return types