def METHOD_NAME(self, prefix: bool = True) -> None:
    step = 0
    spinner_states = ["-", "\\", "|", "/"]
    stop = False
    while True:
        if not self.is_alive():
            stop = True
        summary = self._stats.summary()
        line = " {:.2f}MB of {:.2f}MB uploaded ({:.2f}MB deduped)\r".format(
            summary.uploaded_bytes / 1048576.0,
            summary.total_bytes / 1048576.0,
            summary.deduped_bytes / 1048576.0,
        )
        line = spinner_states[step % 4] + line
        step += 1
        wandb.termlog(line, newline=False, prefix=prefix)
        if stop:
            break
        time.sleep(0.25)
    dedupe_fraction = (
        summary.deduped_bytes / float(summary.total_bytes)
        if summary.total_bytes > 0
        else 0
    )
    if dedupe_fraction > 0.01:
        wandb.termlog(
            "W&B sync reduced upload amount by %.1f%%             "
            % (dedupe_fraction * 100),
            prefix=prefix,
        )
    # clear progress line.
    wandb.termlog(" " * 79, prefix=prefix)