code: def test_assign_bad_enum_value_name__raises_error(self):
      # -- CONVERT: string => Enum value (item)
      bad_enum_names = ["UNKNOWN_COLOR", "RED", "Green", "blue2"]
      for value in bad_enum_names:
          example = self.Example()
          with self.assertRaises(TraitError):
              example.color = value
  
imports: import unittest
  import enum
  from ipython_genutils.py3compat import string_types
  from traitlets import HasTraits, TraitError, UseEnum
label_desc: Use image node_id 7 for calling the TestUseEnum obj's underlying member method code with example usage: obj.test_assign_bad_enum_value_name__raises_error() without return types