code: def test_latent_py_warning():
      ps, py, inv = get_latent_py_ps_inv()
      with pytest.raises(TypeError) as e:
          with pytest.warns(UserWarning) as w:
              py2 = latent_algebra.compute_py(
                  ps=np.array([[[0.1, 0.3, 0.6]]]),
                  noise_matrix=nm,
                  inverse_noise_matrix=inv,
              )
              py2 = latent_algebra.compute_py(
                  ps=np.array([[0.1], [0.2], [0.7]]),
                  noise_matrix=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 6 for calling a global function with example usage: test_latent_py_warning() without return types