code: def test_exception_raised_if_probabilities_and_values_inconsistent(
      self,
  ):
      a = np.zeros([2, 2, 2, 1], dtype=np.float)
  
      with self.assertRaises(IndexError) as context:
          PMF(
              {
                  "Flu": [False, True],
                  "Meningitis": [False, True],
                  "Light Sensitivity": [False, True],
                  "Fever": [False, True],
              },
              a,
          )
  
      self.assertEqual(
          str(context.exception),
          (
              "Variable values have combined shape (2, 2, 2, 2), whereas the PMF "
              "array given has shape (2, 2, 2, 1)"
          ),
      )
  
file_path: typedb-ml/examples/diagnosis/dataset/pmf_test.py
imports: import unittest
  import numpy
  import pandas
  from pmf import PMF
label_desc: Use image node_id 2 for calling the TestPMF obj's underlying member method code with example usage: obj.test_exception_raised_if_probabilities_and_values_inconsistent() without return types