code: def _project_correlation_factors(X):
      """
      Project a matrix into the domain of matrices whose row-wise sums
      of squares are less than or equal to 1.
  
      The input matrix is modified in-place.
      """
      nm = np.sqrt((X * X).sum(1))
      ii = np.flatnonzero(nm > 1)
      if len(ii) > 0:
          X[ii, :] /= nm[ii][:, None]
  
imports: import numpy
  import scipy.sparse
  from scipy.sparse.linalg import svds
  from scipy.optimize import fminbound
  import warnings
  from statsmodels.tools.tools import Bunch
  from statsmodels.tools.sm_exceptions import IterationLimitWarning, iteration_limit_doc
label_desc: Use image node_id 7 for calling a global function with example usage: _project_correlation_factors(X) without return types