code: def log_every_n(level, msg, n, *args):
    
    count = _get_next_log_count_per_token(get_absl_logger().findCaller())
    log_if(level, msg, not (count % n), *args)
docs: Logs 'msg % args' at level 'level' once per 'n' times.
  
    Logs the 1st call, (N+1)st call, (2N+1)st call,  etc.
    Not threadsafe.
  
    Args:
      level: int, the absl logging level at which to log.
      msg: str, the message to be logged.
      n: int, the number of times this should be called before it is logged.
      *args: The args to be substitued into the msg.