code: def test_ctor_with_default_value(self):
      def new_trait_class(
          default_value, case_sensitive, substring_matching
      ):
          class Example(HasTraits):
              color = FuzzyEnum(
                  color_choices,
                  default_value=default_value,
                  case_sensitive=case_sensitive,
                  substring_matching=substring_matching,
              )
  
          return Example
  
      for color in color_choices:
          example = new_trait_class(color, False, False)()
          self.assertEqual(example.color, color)
  
          example = new_trait_class(color.upper(), False, False)()
          self.assertEqual(example.color, color)
  
      color = color_choices[-1]  # 'YeLLoW'
      example = new_trait_class(color, True, False)()
      self.assertEqual(example.color, color)
  
imports: import enum
  import unittest
  from traitlets import CaselessStrEnum, Enum, FuzzyEnum, HasTraits, TraitError, UseEnum
label_desc: Use image node_id 6 for calling the TestFuzzyEnum obj's underlying member method code with example usage: obj.test_ctor_with_default_value() and returns: Example