code: def _row_count(A):
      """
      Counts the number of nonzeros in each row of input array A.
      Nonzeros are defined as any element with absolute value greater than
      tol = 1e-13. This value should probably be an input to the function.
  
      Parameters
      ----------
      A : 2-D array
          An array representing a matrix
  
      Returns
      -------
      rowcount : 1-D array
          Number of nonzeros in each row of A
  
      """
      tol = 1e-13
      return np.array((abs(A) > tol).sum(axis=1)).flatten()
  
file_path: catboost/contrib/python/scipy/py3/scipy/optimize/_remove_redundancy.py
imports: import numpy
  from scipy.linalg import svd
  from scipy.linalg.interpolative import interp_decomp
  import scipy
  from scipy.linalg.blas import dtrsm
label_desc: Use image node_id 1 for calling a global function with example usage: _row_count(A) and returns: np