code: def test_build_pipeline_learner_assertion(has_repeated_learners):
      @fp.curry
      def learner(df, a, b, c=3):
          return lambda dataset: dataset + a + b + c, df, {}
  
      learner_fn = learner(b=2)
  
      with pytest.raises(ValueError):
          build_pipeline(
              learner_fn, has_repeated_learners=has_repeated_learners
          )
  
      learner_fn = learner(a=1, b=2)
  
      build_pipeline(learner_fn)
  
file_path: fklearn/tests/training/test_pipeline.py
imports: import itertools
  import numpy
  import pandas
  import pytest
  import toolz
  from fklearn.training.imputation import placeholder_imputer
  from fklearn.training.pipeline import build_pipeline
  from fklearn.training.regression import xgb_regression_learner
  from fklearn.training.transformation import count_categorizer, onehot_categorizer
label_desc: Use image node_id 4 for calling a global function with example usage: test_build_pipeline_learner_assertion(has_repeated_learners) and returns: function,  df,  dict