code: def test_default_components():
      lda = LDA()
      lda.fit(X, y)
      res = lda.fit(X, y).transform(X)
      assert res.shape[1] == 4
  
file_path: mlxtend/mlxtend/feature_extraction/tests/test_linear_discriminant_analysis.py
imports: import numpy
  import pytest
  from numpy.testing import assert_almost_equal
  from mlxtend.data import iris_data
  from mlxtend.feature_extraction import LinearDiscriminantAnalysis
  from mlxtend.preprocessing import standardize
label_desc: Use image node_id 1 for calling a global function with example usage: test_default_components() without return types