<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rest_put_stream(self, url, stream, headers=None, session=None, verify=True, cert=None):
 """ Perform a chunked PUT request to url with requests.session This is specifically to upload files. """

        res = session.put(url, headers=headers, data=stream, verify=verify, cert=cert)
        return res.text, res.status_code