code: def search_archive(pattern, archive, verbosity=0, interactive=True):
      
      if not pattern:
          raise util.PatoolError("empty search pattern")
      util.check_existing_filename(archive)
      if verbosity >= 0:
          util.log_info("Searching %r in %s ..." % (pattern, archive))
      res = _search_archive(pattern, archive, verbosity=verbosity, interactive=interactive)
      if res == 1 and verbosity >= 0:
          util.log_info("... %r not found" % pattern)
      return res
docs: Search pattern in archive members.