code: def ParseText(self, text, eof=True):
      
  
      lines = []
      if text:
        lines = text.splitlines()
  
      for line in lines:
        self._CheckLine(line)
        if self._cur_state_name in ('End', 'EOF'):
          break
  
      if self._cur_state_name != 'End' and 'EOF' not in self.states and eof:
        # Implicit EOF performs Next.Record operation.
        # Suppressed if Null EOF state is instantiated.
        self._AppendRecord()
  
      return self._result
docs: Passes CLI output through FSM and returns list of tuples.
  
      First tuple is the header, every subsequent tuple is a row.
  
      Args:
        text: (str), Text to parse with embedded newlines.
        eof: (boolean), Set to False if we are parsing only part of the file.
              Suppresses triggering EOF state.
  
      Raises:
        TextFSMError: An error occurred within the FSM.
  
      Returns:
        List of Lists.