code: def test_latent_nm():
      ps, py, inv = get_latent_py_ps_inv()
      nm2 = latent_algebra.compute_noise_matrix_from_inverse(
          ps, inv, py=py
      )
      assert np.all(abs(nm - nm2) < 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 4 for calling a global function with example usage: test_latent_nm() without return types