code: def _get_pca(rng=None):
      from sklearn.decomposition import PCA
  
      return PCA(
          n_components=2,
          whiten=True,
          svd_solver="randomized",
          random_state=rng,
      )
  
file_path: mne-python/mne/preprocessing/tests/test_infomax.py
imports: import numpy
  import pytest
  from numpy.testing import assert_almost_equal
  from scipy import linalg, stats
  from mne.preprocessing.infomax_ import infomax
label_desc: Use image node_id 7 for calling a global function with example usage: _get_pca(rng) and returns: PCA