code: def test_with_without_gram_tol():
      assert_array_almost_equal(
          orthogonal_mp(X, y, tol=1.0),
          orthogonal_mp(X, y, tol=1.0, precompute=True),
      )
  
imports: import numpy
  import pytest
  from sklearn.datasets import make_sparse_coded_signal
  from sklearn.linear_model import LinearRegression, OrthogonalMatchingPursuit, OrthogonalMatchingPursuitCV, orthogonal_mp, orthogonal_mp_gram
  from sklearn.utils import check_random_state
  from sklearn.utils._testing import assert_allclose, assert_array_almost_equal, assert_array_equal, ignore_warnings
label_desc: Use image node_id 6 for calling a global function with example usage: test_with_without_gram_tol() without return types