code: def test_assign_bad_enum_value_number__raises_error(self):
      # -- CONVERT: number => Enum value (item)
      bad_numbers = [-1, 0, 5]
      for value in bad_numbers:
          self.assertIsInstance(value, int)
          assert UseEnum(Color).select_by_number(value, None) is None
          example = self.Example()
          with self.assertRaises(TraitError):
              example.color = value
  
imports: import enum
  import unittest
  from traitlets import CaselessStrEnum, Enum, FuzzyEnum, HasTraits, TraitError, UseEnum
label_desc: Use image node_id 10 for calling the TestUseEnum obj's underlying member method code with example usage: obj.test_assign_bad_enum_value_number__raises_error() without return types