class_docstr: FileInput([files[, inplace[, backup]]], *, mode=None, openhook=None)
  
  Class FileInput is the implementation of the module; its methods
  filename(), lineno(), fileline(), isfirstline(), isstdin(), fileno(),
  nextfile() and close() correspond to the functions of the same name
  in the module.
  In addition it has a readline() method which returns the next
  input line, and a __getitem__() method which implements the
  sequence behavior. The sequence must be accessed in strictly
  sequential order; random access and readline() cannot be mixed.
code: def nextfile(self):
      savestdout = self._savestdout
      self._savestdout = None
      if savestdout:
          sys.stdout = savestdout
  
      output = self._output
      self._output = None
      try:
          if output:
              output.close()
      finally:
          file = self._file
          self._file = None
          try:
              del self._readline  # restore FileInput._readline
          except AttributeError:
              pass
          try:
              if file and not self._isstdin:
                  file.close()
          finally:
              backupfilename = self._backupfilename
              self._backupfilename = None
              if backupfilename and not self._backup:
                  try:
                      os.unlink(backupfilename)
                  except OSError:
                      pass
  
              self._isstdin = False
  
imports: import io
  import sys, os
  from types import GenericAlias
label_desc: Use image node_id 8 for calling the FileInput obj's underlying member method code with example usage: obj.nextfile() without return types