<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def requests_request(method, url, **kwargs):
 """Requests-mock requests.request wrapper."""

    session = local_sessions.session
    response = session.request(method=method, url=url, **kwargs)
    session.close()
    return response