code: def test_dict_format(self):
      with pytest.raises(
          ValueError, match="uncertainties_test must be of type dict"
      ):
          quantile_binning_predictions(
              [1, 2, 3], [[1], [1.5], [1.6], [2]]
          )
      with pytest.raises(
          ValueError,
          match=r"Dict uncertainties_test should be of structure .*",
      ):
          quantile_binning_predictions(
              {
                  "PHD_2154": "2",
                  "PHD_2158": 2,
                  "PHD_217": 1,
                  "PHD_2194": 4,
              },
              [[1], [1.5], [1.6], [2]],
          )
      with pytest.raises(
          ValueError, match=r"uncert_thresh list should be 2D .*"
      ):
          quantile_binning_predictions(
              {
                  "PHD_2154": 2,
                  "PHD_2158": 2,
                  "PHD_217": 1,
                  "PHD_2194": 4,
              },
              [1, 1.5, 1.6, 2],
          )
  
imports: import logging
  import pytest
  from kale.predict.uncertainty_binning import quantile_binning_predictions
  from kale.utils.seed import set_seed
label_desc: Use image node_id 2 for calling the TestQuantileBinningPredictions obj's underlying member method code with example usage: obj.test_dict_format() without return types