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