code: def download(self, id, seq, intf, inline=False): # pylint: disable=invalid-name,redefined-builtin
          
          resp = self.service.get_id(self._base(id, seq), intf, params={'format': 'cap', 'inline': inline}, stream=True)
          b = io.BytesIO()
          stream.stream_response_to_file(resp, path=b)
          resp.close()
          b.seek(0)
          return (b, self.service.filename(resp))
docs: Download a capture as a PCAP file.
  
          :param id: Result ID as an int.
          :param seq: TestResult sequence ID as an int.
          :param intf: Interface name as string.
          :param inline: (optional) Use inline version of capture file.
          :rtype: tuple `(io.BytesIO, 'filename')`