<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_adapted_session(adapter):
 """ Mounts an adapter capable of communication over HTTP or HTTPS to the supplied session. :param adapter: A :class:`requests.adapters.HTTPAdapter` instance :return: The adapted :class:`requests.Session` instance """

        session = requests.Session()
        session.mount("http://", adapter)
        session.mount("https://", adapter)
        return session