code: def _run_pyshark(self, pyshark):
          
          # if not self._flag_a:
          #     self._flag_a = True
          #     warnings.warn(f"'Extractor(engine=pyshark)' object is not iterable; "
          #                     "so 'auto=False' will be ignored", AttributeWarning, stacklevel=stacklevel())
  
          if self._exlyr != 'None' or self._exptl != 'null':
              warnings.warn("'Extractor(engine=pyshark)' does not support protocol and layer threshold; "
                            f"'layer={self._exlyr}' and 'protocol={self._exptl}' ignored",
                            AttributeWarning, stacklevel=stacklevel())
  
          if (self._ipv4 or self._ipv6 or self._tcp):
              self._ipv4 = self._ipv6 = self._tcp = False
              self._reasm = [None] * 3
              warnings.warn("'Extractor(engine=pyshark)' object dose not support reassembly; "
                            f"so 'ipv4={self._ipv4}', 'ipv6={self._ipv6}' and 'tcp={self._tcp}' will be ignored",
                            AttributeWarning, stacklevel=stacklevel())
  
          # extract & analyse file
          self._expkg = pyshark
          self._extmp = iter(pyshark.FileCapture(self._ifnm, keep_packets=False))
  
          # start iteration
          self.record_frames()
docs: Call pyshark.FileCapture to extract PCAP files.