class_docstr: A utility for finding the names of enum values.
docstr: Returns a string containing the name of an enum value.
code: def Name(self, number):  # pylint: disable=invalid-name
      """Returns a string containing the name of an enum value."""
      try:
          return self._enum_type.values_by_number[number].name
      except KeyError:
          pass  # fall out to break exception chaining
  
      if not isinstance(number, six.integer_types):
          raise TypeError(
              "Enum value for {} must be an int, but got {} {!r}.".format(
                  self._enum_type.name, type(number), number
              )
          )
      else:
          # repr here to handle the odd case when you pass in a boolean.
          raise ValueError(
              "Enum {} has no name defined for value {!r}".format(
                  self._enum_type.name, number
              )
          )
  
file_path: catboost/contrib/python/protobuf/py2/google/protobuf/internal/enum_type_wrapper.py
imports: import six
label_desc: Use image node_id 2 for calling the EnumTypeWrapper obj's underlying member method code with example usage: obj.Name(number) and returns: self