code: def test_ctor_with_default_value_as_enum_value(self):
      # -- CONVERT: number => Enum value (item)
      class Example2(HasTraits):
          color = UseEnum(Color, default_value=Color.green)
  
      example = Example2()
      self.assertEqual(example.color, Color.green)
  
imports: import unittest
  import enum
  from ipython_genutils.py3compat import string_types
  from traitlets import HasTraits, TraitError, UseEnum
label_desc: Use image node_id 12 for calling the TestUseEnum obj's underlying member method code with example usage: obj.test_ctor_with_default_value_as_enum_value() without return types