code: def close(self):
          
          if self.leave:
              if self.last_print_n < self.n:
                  cur_t = time.time()
                  self.sp.print_status(format_meter(self.n, self.total, cur_t-self.start_t, self.ncols, self.prefix, self.unit, self.unit_format, self.ascii))
              self.file.write('\n')
          else:
              self.sp.print_status('')
              self.file.write('\r')
docs: Call this method to force print the last progress bar update based on the latest n value