code: def rank(M, eps=1e-9):
      U, s, V = svd(M, full_matrices=False)
      return np.sum(s > eps)
  
imports: import numpy
  from scipy.linalg import svd
  from sklearn.datasets import fetch_20newsgroups_vectorized
  from sklearn.feature_selection import SelectKBest, chi2
  from lightning.classification import FistaClassifier
label_desc: Use image node_id 1 for calling a global function with example usage: rank(M, eps) and returns: np