code: def test_search_substrings__ctor(self):
      class FuzzyExample(HasTraits):
          color = FuzzyEnum(
              color_choices, help="Color enum", substring_matching=True
          )
  
      color = color_choices[-1]  # 'YeLLoW'
      for end in (-1, len(color)):
          for start in range(1, len(color) - 2):
              value = color[start:end]
  
              example = FuzzyExample()
              example.color = value
              self.assertEqual(example.color, color)
  
              example = FuzzyExample()
              example.color = value.upper()
              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 4 for calling the TestFuzzyEnum obj's underlying member method code with example usage: obj.test_search_substrings__ctor() without return types