code: def test_compute_py_method_marginal_true_labels_class_counts_none_error():
      ps, py, inv = get_latent_py_ps_inv()
      with pytest.raises(ValueError) as e:
          _ = latent_algebra.compute_py(
              ps=ps,
              noise_matrix=nm,
              inverse_noise_matrix=inv,
              py_method="marginal",
              true_labels_class_counts=None,
          )
  
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 11 for calling a global function with example usage: test_compute_py_method_marginal_true_labels_class_counts_none_error() without return types