def METHOD_NAME(name, value):
    if not isinstance(value, six.string_types):
        raise TypeError("`value` must be a string, not {}".format(type(value)))
    if not value:
        raise ValueError("`value` must be a non-empty string")
    return value