code: def _parse_request_options(self, options):
          
          request_options = self._select_options(options, self.REQUEST_OPTIONS)
          if 'params' in request_options:
              params = request_options['params']
              for key in params:
                  if isinstance(params[key], bool):
                      params[key] = json.dumps(params[key])
          if 'data' in request_options:
              # remove empty 'options':
              if 'options' in request_options['data'] and (
                      len(request_options['data']['options']) == 0):
                  del request_options['data']['options']
              # serialize 'data' to JSON, requests doesn't do this automatically:
              request_options['data'] = json.dumps(request_options['data'])
  
          headers = self.headers.copy()
          headers.update(request_options.get('headers', {}))
          request_options['headers'] = headers
          return request_options
docs: Select request options out of the provided options object.
  
  
          Select and formats options to be passed to the 'requests' library's
          request methods.