code: def test_init_with_invalid_threshold(self):
      with self.assertRaisesRegex(ValueError, "Threshold must be"):
          OverallUncertainty(2, threshold=-1)
      with self.assertRaisesRegex(ValueError, "Threshold must be"):
          OverallUncertainty(2, threshold=1)
  
file_path: small-text/tests/unit/small_text/stopping_criteria/test_uncertainty.py
imports: import unittest
  import numpy
  from small_text.stopping_criteria.uncertainty import OverallUncertainty
label_desc: Use image node_id 3 for calling the OverallUncertaintyTest obj's underlying member method code with example usage: obj.test_init_with_invalid_threshold() without return types