code: def _get_row_and_column_matrix(array):
      """Helper method to get the row and column matrix from an array.
  
      Args:
          array (numpy.ndarray): the array from which to get the row and column matrix.
  
      Returns:
          (numpy.ndarray, numpy.ndarray): (row matrix, column matrix)
      """
      row_matrix = np.expand_dims(array, axis=0)
      column_matrix = np.expand_dims(array, axis=1)
      return row_matrix, column_matrix
  
file_path: recommenders/recommenders/utils/python_utils.py
imports: import logging
  import numpy
  from scipy import sparse
label_desc: Use image node_id 2 for calling a global function with example usage: _get_row_and_column_matrix(array) and returns: row_matrix,  column_matrix