class_docstr: Simple helper class to log once in a while or when progress is quick enough
code: def __init__(self, time_interval=180, progress_interval=0.1):
      self.time_interval = time_interval
      self.progress_interval = progress_interval
  
      self.last_time = 0.0
      self.last_progress = 0.0
  
file_path: audio/examples/source_separation/conv_tasnet/trainer.py
imports: import time
  from collections import namedtuple
  from typing import Tuple
  import torch
  import torch.distributed
  from utils import dist_utils, metrics
label_desc: Use image node_id 1 to create a new OccasionalLogger object  with example: obj = OccasionalLogger(time_interval, progress_interval)