code: def test_compute_py_err():
      ps, py, inv = get_latent_py_ps_inv()
      try:
          py = latent_algebra.compute_py(
              ps=ps,
              noise_matrix=nm,
              inverse_noise_matrix=inv,
              py_method="marginal_ps",
          )
      except ValueError as e:
          assert "true_labels_class_counts" in str(e)
          with pytest.raises(ValueError) as e:
              py = latent_algebra.compute_py(
                  ps=ps,
                  noise_matrix=nm,
                  inverse_noise_matrix=inv,
                  py_method="marginal_ps",
              )
  
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 7 for calling a global function with example usage: test_compute_py_err() without return types