code: def test_formula_output(df, formula, expected_shape):
      X, y = df[["a", "b", "c", "d"]], df[["e"]]
      tf = FormulaicTransformer(formula=formula)
  
      assert tf.fit(X, y).transform(X).shape == expected_shape
  
file_path: scikit-lego/tests/test_preprocessing/test_formulaic_transformer.py
imports: import joblib
  import numpy
  import pandas
  import pytest
  from scipy.sparse import spmatrix
  from sklearn.linear_model import LogisticRegression
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import StandardScaler
  from sklego.preprocessing import FormulaicTransformer
label_desc: Use image node_id 3 for calling a global function with example usage: test_formula_output(df, formula, expected_shape) without return types