code: def test_pyx_error():
      pred_probs = np.array([0.1, 0.3, 0.6])
      ps, py, inv = get_latent_py_ps_inv()
      try:
          pyx = latent_algebra.compute_pyx(
              pred_probs, nm, inverse_noise_matrix=inv
          )
      except ValueError as e:
          assert "should be (N, K)" in str(e)
      with pytest.raises(ValueError) as e:
          pyx = latent_algebra.compute_pyx(
              pred_probs, nm, inverse_noise_matrix=inv
          )
  
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 10 for calling a global function with example usage: test_pyx_error() without return types