code: def test_fuzzy_histogram_exceptions(self):
      values = scipy.random.randint(0, 10, 100)
  
      # test fuzzy histogram exceptions
      self.assertRaises(
          AttributeError, fuzzy_histogram, values, range=(0, 0)
      )
      self.assertRaises(
          AttributeError, fuzzy_histogram, values, range=(0, -1)
      )
      self.assertRaises(AttributeError, fuzzy_histogram, values, bins=0)
      self.assertRaises(
          AttributeError, fuzzy_histogram, values, bins=-1
      )
      self.assertRaises(
          AttributeError, fuzzy_histogram, values, bins=0.5
      )
      self.assertRaises(
          AttributeError, fuzzy_histogram, values, membership=""
      )
      self.assertRaises(
          AttributeError, fuzzy_histogram, values, membership="x"
      )
      self.assertRaises(
          AttributeError, fuzzy_histogram, values, membership=True
      )
      self.assertRaises(
          AttributeError, fuzzy_histogram, values, membership=None
      )
      self.assertRaises(
          AttributeError, fuzzy_histogram, values, smoothness=-1.0
      )
      self.assertRaises(
          AttributeError, fuzzy_histogram, values, smoothness=-1
      )
      self.assertRaises(
          AttributeError, fuzzy_histogram, values, smoothness=-1.0
      )
      self.assertRaises(
          AttributeError, fuzzy_histogram, values, smoothness=-1
      )
  
      # test triangular and trapezium exceptions
      self.assertRaises(
          AttributeError,
          fuzzy_histogram,
          values,
          membership="triangular",
          smoothness=0.51,
      )
      self.assertRaises(
          AttributeError,
          fuzzy_histogram,
          values,
          membership="trapezoid",
          smoothness=0.51,
      )
      self.assertRaises(
          AttributeError,
          fuzzy_histogram,
          values,
          membership="trapezoid",
          smoothness=0.09,
      )
  
      # test gaussian exceptions
      self.assertRaises(
          AttributeError,
          fuzzy_histogram,
          values,
          membership="gaussian",
          smoothness=1.0 / 11,
      )
      self.assertRaises(
          AttributeError,
          fuzzy_histogram,
          values,
          membership="gaussian",
          smoothness=11,
      )
  
      # test sigmoidal exceptions
      self.assertRaises(
          AttributeError,
          fuzzy_histogram,
          values,
          membership="sigmoid",
          smoothness=1.0 / 11,
      )
      self.assertRaises(
          AttributeError,
          fuzzy_histogram,
          values,
          membership="sigmoid",
          smoothness=11,
      )
  
file_path: medpy/tests/features_/histogram.py
imports: import unittest
  import math
  import scipy
  from medpy.features.histogram import fuzzy_histogram, triangular_membership, trapezoid_membership, gaussian_membership, sigmoidal_difference_membership
label_desc: Use image node_id 8 for calling the TestHistogramFeatures obj's underlying member method code with example usage: obj.test_fuzzy_histogram_exceptions() without return types