code: def __init__(self, spawn, searcher, searchwindowsize=-1):
      self.spawn = spawn
      self.searcher = searcher
      # A value of -1 means to use the figure from spawn, which should
      # be None or a positive number.
      if searchwindowsize == -1:
          searchwindowsize = spawn.searchwindowsize
      self.searchwindowsize = searchwindowsize
      self.lookback = None
      if hasattr(searcher, "longest_string"):
          self.lookback = searcher.longest_string
  
imports: import time
  from .exceptions import EOF, TIMEOUT
label_desc: Use image node_id 1 to create a new Expecter object from inherited base classes: object with example: obj = Expecter(spawn, searcher, searchwindowsize)