code: def from_value(cls, value):
          
          warnings.warn("{0}.{1} will be deprecated in a future release. "
                        "Please use {0}.{2} instead".format(cls.__name__, cls.from_value.__name__, cls.get.__name__),
                        PendingDeprecationWarning)
          return cls[value]
docs: Return the EChoice object associated with this value, if any.
  
          Parameters
          ----------
          value
              In the type of the `value` field, as set when instantiating this EChoice.
  
          Returns
          -------
          EChoice
  
          Raises
          ------
          KeyError
              if `value` does not exist in any element