code: def request(self, method, url, body=None, headers=None, *args, **kwargs):
          '''Persist the request metadata in self._vcr_request'''
          self._vcr_request = Request(
              method=method,
              uri=self._uri(url),
              body=body,
              headers=headers or {}
          )
          log.debug('Got {}'.format(self._vcr_request))
  
          # Note: The request may not actually be finished at this point, so
          # I'm not sending the actual request until getresponse().  This
          # allows me to compare the entire length of the response to see if it
          # exists in the cassette.
  
          self._sock = VCRFakeSocket(f request(self, method, url, body=None, headers=None, *args, **kwargs):
          '''Persist the request metadata in self._vcr_request'''
          self._vcr_request = Request(
              method=method,
              uri=self._uri(url),
              body=body,
              headers=headers or {}
          )
          log.debug('Got {}'.format(self._vcr_request))
  
          # Note: The request may not actually be finished at this point, so
          # I'm not sending the actual request until getresponse().  This
          # allows me to compare the entire length of the response to see if it
          # exists in the cassette.
  
          self._sock = VCRFakeSocket()
docs: Persist the request metadata in self._vcr_request