<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def require_content_types(*allowed_content_types):
 r"""Decorator to test if proper Content-Type is provided. :param \*allowed_content_types: List of allowed content types. :raises invenio_rest.errors.InvalidContentType: It's rised if a content type not allowed is required. """

    def decorator(f):
        @wraps(f)
        def inner(*args, **kwargs):
            if request.mimetype not in allowed_content_types:
                raise InvalidContentType(allowed_content_types)
            return f(*args, **kwargs)
        return inner
    return decorator