code: def eof_received(self):
      # N.B. If this gets called, async will close the pipe (the spawn object)
      # for us
      try:
          self.expecter.spawn.flag_eof = True
          index = self.expecter.eof()
      except EOF as exc:
          self.error(exc)
      else:
          self.found(index)
  
file_path: catboost/contrib/python/pexpect/py3/pexpect/_async_w_await.py
imports: import asyncio
  import errno
  import signal
  from sys import version_info
  from pexpect import EOF
label_desc: Use image node_id 6 for calling the PatternWaiter obj's underlying member method code with example usage: obj.eof_received() without return types