code: def assert_almost_equal_hash_matrices(mat_1, mat_2, ignore_sign=True):
      """
      Currently if all the sorted values in the row is equal we
      assume equality
      TODO: Find better way to test ig hash matrices are equal
      """
      assert mat_1.shape == mat_2.shape
      for row_id in range(mat_1.shape[0]):
          row_m1 = mat_1[row_id]
          row_m2 = mat_2[row_id]
          nz_row_m1 = np.sort(row_m1[row_m1 != 0])
          nz_row_m2 = np.sort(row_m2[row_m2 != 0])
          # print(nz_row_m1)
          # print(nz_row_m2)
          if ignore_sign:
              nz_row_m1 = np.abs(nz_row_m1)
              nz_row_m2 = np.abs(nz_row_m2)
          nz_row_m1.sort()
          nz_row_m2.sort()
          np.testing.assert_almost_equal(nz_row_m1, nz_row_m2)
  
imports: from cuml.internals.safe_imports import cpu_only_import
  from cuml.internals.safe_imports import cpu_only_import_from
  from cuml.internals.safe_imports import gpu_only_import_from
  from sklearn.feature_extraction.text import TfidfVectorizer
  from sklearn.feature_extraction.text import HashingVectorizer
  from sklearn.feature_extraction.text import CountVectorizer
  import pytest
  from cuml.feature_extraction.text import CountVectorizer
  from cuml.feature_extraction.text import TfidfVectorizer
  from cuml.feature_extraction.text import HashingVectorizer
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 25 for calling a global function with example usage: assert_almost_equal_hash_matrices(mat_1, mat_2, ignore_sign) without return types