code: def test_fitting_error():
      X1 = np.array([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
      mc = MeanCenterer()
      with pytest.raises(AttributeError):
          mc.transform(X1)
  
imports: import numpy
  import pytest
  from mlxtend.preprocessing import MeanCenterer
label_desc: Use image node_id 1 for calling a global function with example usage: test_fitting_error() without return types