code: def test_infomax_weights_ini():
      """Test the infomax algorithm w/initial weights matrix."""
      X = np.random.random((3, 100))
      weights = np.array(
          [[1, 2, 3], [4, 5, 6], [7, 8, 9]], dtype=np.float64
      )
  
      w1 = infomax(X, max_iter=0, weights=weights, extended=True)
      w2 = infomax(X, max_iter=0, weights=weights, extended=False)
  
      assert_almost_equal(w1, weights)
      assert_almost_equal(w2, weights)
  
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 4 for calling a global function with example usage: test_infomax_weights_ini() without return types