code: def generate_screenshots(self):
          
          headers = {'content-type': 'application/json', 'Accept': 'application/json'}
          resp = requests.post(self.api_url, data=json.dumps(self.config), \
                               headers=headers, auth=self.auth)
          resp = self._process_response(resp)
          return resp.json()
docs: Take a config file as input and generate screenshots