<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_value_from_session(key):
 """Get a session value from the path specifed. :param key: Array that defines the path of the value inside the message. """

    def value_from_session_function(service, message):
        """Actual implementation of get_value_from_session function.

        :param service: SelenolService object.
        :param message: SelenolMessage request.
        """
        return _get_value(message.session, key)
    return value_from_session_function