<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_query_batch_request(self, batch_id, job_id=None):
 """ Fetch the request sent for the batch. Note should only used for query batches """

        if not job_id:
            job_id = self.lookup_job_id(batch_id)

        url = self.endpoint + "/job/{}/batch/{}/request".format(job_id, batch_id)
        resp = requests.get(url, headers=self.headers())
        self.check_status(resp)
        return resp.text