code: def erase_line(method=EraseMethod.ALL, file=sys.stdout):
      
      erase.line(method).write(file=file)
docs: Erase a line, or part of a line. See `method` argument below.
          Cursor position does not change.
  
          Esc[<method>K
  
          Arguments:
              method : One of these possible values:
                          EraseMethod.END or 0:
                              Clear from cursor to the end of the line.
                          EraseMethod.START or 1:
                              Clear from cursor to the start of the line.
                          EraseMethod.ALL or 2:
                              Clear the entire line.
                       Default: EraseMethod.ALL (2)