parameters: (name)
docstring: Checks if all name is a valid feature. Otherwise, raises an exception.
docstring_summary: Checks if all name is a valid feature. Otherwise, raises an exception.
docstring_tokens: Checks if all name is a valid feature . Otherwise raises an exception .
function: def validate_feature (name):
      """ Checks if all name is a valid feature. Otherwise, raises an exception.
      """
      assert isinstance(name, basestring)
      if name not in __all_features:
          raise InvalidFeature ("'%s' is not a valid feature name" % name)
      else:
          return __all_features[name]
function_tokens: def validate_feature ( name ) : assert isinstance ( name , basestring ) if name not in __all_features : raise InvalidFeature ( "'%s' is not a valid feature name" % name ) else : return __all_features [ name ]