code: def erase_line(self, mode=0, on_stderr=False):
      # 0 should clear from the cursor to the end of the line.
      # 1 should clear from the cursor to the beginning of the line.
      # 2 should clear the entire line.
      handle = win32.STDOUT
      if on_stderr:
          handle = win32.STDERR
      csbi = win32.GetConsoleScreenBufferInfo(handle)
      if mode == 0:
          from_coord = csbi.dwCursorPosition
          cells_to_erase = csbi.dwSize.X - csbi.dwCursorPosition.X
      elif mode == 1:
          from_coord = win32.COORD(0, csbi.dwCursorPosition.Y)
          cells_to_erase = csbi.dwCursorPosition.X
      elif mode == 2:
          from_coord = win32.COORD(0, csbi.dwCursorPosition.Y)
          cells_to_erase = csbi.dwSize.X
      else:
          # invalid mode
          return
      # fill the entire screen with blanks
      win32.FillConsoleOutputCharacter(
          handle, " ", cells_to_erase, from_coord
      )
      # now set the buffer's attributes accordingly
      win32.FillConsoleOutputAttribute(
          handle, self.get_attrs(), cells_to_erase, from_coord
      )
  
imports: from .None import win32
label_desc: Use image node_id 13 for calling the WinTerm obj's underlying member method code with example usage: obj.erase_line(mode, on_stderr) without return types