docs: def _tail_temp_file(self, temp_file, num_lines, seek_offset=10000):
          """ Returns a list of the last num_lines lines from a temp file.
  
          This works by first moving seek_offset chars back from the end of
          the file, then attempting to tail the file from there. It is
          possible that fewer than num_lines will be returned, even if the
          file has more total lines than num_lines.
          """
  
          if not isinstance(num_lines, int):
              raise DagobahError('num_lines must be an integer')
  
          temp_file.seek(0, os.SEEK_END)
          size = temp_file.tell()
          temp_file.seek(-1 * min(size, seek_offset), os.SEEK_END)
  
          result = []
          while True:
              this_line = temp_file.readline()
              if this_line == '':
                  break
              result.append(this_line.strip())
              if len(result) > num_lines:
                  result.pop(0)
          return result