code: def test_make_digits_exceptions(self):
      with self.assertRaisesRegexp(ValueError, "from \[0\, 1\) range"):
          datasets.make_digits(noise_level=-1)
  
      with self.assertRaisesRegexp(ValueError, "from \[0\, 1\) range"):
          datasets.make_digits(noise_level=1)
  
      with self.assertRaisesRegexp(ValueError, "greater or equal to 1"):
          datasets.make_digits(n_samples=0)
  
      with self.assertRaisesRegexp(ValueError, "Unknown mode"):
          datasets.make_digits(n_samples=0, mode="unknown")
  
file_path: neupy/tests/datasets/test_digits.py
imports: import numpy
  from neupy import datasets
  from base import BaseTestCase
label_desc: Use image node_id 2 for calling the DiscreteDigitsDatasetTestCase obj's underlying member method code with example usage: obj.test_make_digits_exceptions() without return types