code: def write(self):
          
          if self.text is None:
              # Text has not been sent through the pipe yet.
              # Do not write anything until it is set to non-None value.
              return None
          if self._last_text == self.text:
              char_delay = 0
          else:
              char_delay = self.char_delay
              self._last_text = self.text
          with self.lock:
              ctl = Control().move_column(1).pos_save().erase_line()
              if char_delay == 0:
                  ctl.text(str(self)).write(file=self.file)
              else:
                  self.write_char_delay(ctl, char_delay)
              ctl.delay(self.delay)
          return None
docs: Writes a single frame of the progress spinner to the terminal.
              This function updates the current frame before returning.