code: def test_latent_py_ps_inv():
      ps, py, inv = latent_algebra.compute_ps_py_inv_noise_matrix(s, nm)
      assert all(abs(np.dot(inv, ps) - py) < 1e-3)
      assert all(abs(np.dot(nm, py) - ps) < 1e-3)
  
file_path: cleanlab/tests/test_latent_algebra.py
imports: from cleanlab.internal import latent_algebra
  import numpy
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_latent_py_ps_inv() without return types