def from_cookie(self, param_name, field):
        """
        A decorator that converts a request cookie into a function parameter based on the specified field.

        :param str param_name: The parameter which receives the argument.
        :param Field field: The field class or instance used to deserialize the request cookie to a Python object.
        :return: A function
        """

        return self.__from_source(param_name, field, lambda: request.cookies, 'cookie')