code: def _clear_output(self):
          
          # If progress output was being written, clear it from the screen.
          if self.progress_output:
              sys.stderr.write("\r".ljust(self.last_line_len))
              sys.stderr.write("\r")
              sys.stderr.flush()
docs: Clears progress output (if any) that was written to the screen.