code: def test_fit(pipeline):
      """Assert that the pipeline can be fitted normally."""
      data = get_data("juice", verbose=False)
      assert pipeline.fit(data.iloc[:, :-1], data.iloc[:, -1])
      assert isinstance(pipeline.feature_names_in_, list)
  
file_path: pycaret/tests/test_pipeline.py
imports: import pandas
  import pytest
  from sklearn.preprocessing import LabelEncoder
  import pycaret.classification
  import pycaret.regression
  from pycaret.datasets import get_data
label_desc: Use image node_id 2 for calling a global function with example usage: test_fit(pipeline) without return types