code: def start_capture(self, override_configs=None,
                        additional_args=None, duration=None,
                        packet_count=None):
          
          if self._process is not None:
              raise sniffer.InvalidOperationError(
                      "Trying to start a sniff while another is still running!")
          capture_dir = os.path.join(self._logger.log_path,
                                     "Sniffer-{}".format(self._interface))
          os.makedirs(capture_dir, exist_ok=True)
          self._capture_file_path = os.path.join(capture_dir,
                        "capture_{}.pcap".format(logger.get_log_file_timestamp()))
  
          self._pre_capture_config(override_configs)
          _, self._temp_capture_file_path = tempfile.mkstemp(suffix=".pcap")
  
          cmd = self._get_command_line(additional_args=additional_args,
                                  duration=duration, packet_count=packet_count)
  
          self._process = utils.start_standing_subprocess(cmd)
          return sniffer.ActiveCaptureContext(self, duration)
docs: See base class documentation