code: def print_stats(self):
      if not self.log_stats:
          return
  
      now = time.time()
      if now - self.last_log_time > self.log_stats_interval:
          print(
              f"Avg tokens(prompt+generate) throughput: {self.all_tokens/(now-self.last_log_time):8.3f} tokens/s\n"
              f"Avg prompt tokens throughput:           {self.prompt_tokens/(now-self.last_log_time):8.3f} tokens/s\n"
              f"Avg generate tokens throughput:         {self.output_tokens/(now-self.last_log_time):8.3f} tokens/s"
          )
          self.all_tokens = 0
          self.output_tokens = 0
          self.prompt_tokens = 0
          self.last_log_time = now
      return
  
imports: import time
label_desc: Use image node_id 4 for calling the Stats obj's underlying member method code with example usage: obj.print_stats() without return types