code: def test_n_samples_equal_n_components():
      # Ensures no warning is raised when n_samples==n_components
      # Non-regression test for gh-19050
      ipca = IncrementalPCA(n_components=5)
      with warnings.catch_warnings():
          warnings.simplefilter("error", RuntimeWarning)
          ipca.partial_fit(np.random.randn(5, 7))
      with warnings.catch_warnings():
          warnings.simplefilter("error", RuntimeWarning)
          ipca.fit(np.random.randn(5, 7))
  
imports: import warnings
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from sklearn import datasets
  from sklearn.decomposition import PCA, IncrementalPCA
  from sklearn.utils._testing import assert_allclose_dense_sparse, assert_almost_equal, assert_array_almost_equal
  from sklearn.utils.fixes import CSC_CONTAINERS, CSR_CONTAINERS, LIL_CONTAINERS
label_desc: Use image node_id 6 for calling a global function with example usage: test_n_samples_equal_n_components() without return types