code: def test_pandastransformadaptor_consistency(param, apply_to):
      """Test that pandas.method and PandasTransformAdaptor.fit.transform is the same."""
      X = _make_series(n_columns=2)
  
      X_fit = X[:12]
      X_trafo = X[12:]
  
      kwargs = param.get("kwargs")
      if kwargs is None:
          kwargs = {}
  
      method = param.get("method")
  
      trafo = PandasTransformAdaptor(
          method=method, kwargs=kwargs, apply_to=apply_to
      )
  
      trafo_result = trafo.fit(X_fit).transform(X_trafo)
  
      if apply_to == "call":
          expected_result = getattr(X_trafo, method)(**kwargs)
      elif apply_to == "all":
          expected_result = getattr(X, method)(**kwargs)
      elif apply_to == "all_subset":
          expected_result = getattr(X, method)(**kwargs)[12:]
  
      assert expected_result.equals(trafo_result)
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_pandastransformadaptor_consistency(param, apply_to) without return types