code: def fast_sum_by_row(matrix: np.ndarray) -> np.array:
      """Faster alternative to np.sum(matrix, axis=1)."""
      return np.matmul(matrix, np.ones(matrix.shape[1]))
  
imports: import typing
  import numpy
  import pandas
  from deepchecks.core.errors import DeepchecksValueError
label_desc: Use image node_id 1 for calling a global function with example usage: fast_sum_by_row(matrix) and returns: np