code: def is_eval_epoch(cur_epoch):
      """Determines if the model should be evaluated at the current epoch."""
      return (
          (cur_epoch + 1) % cfg.train.eval_period == 0
          or cur_epoch == 0
          or (cur_epoch + 1) == cfg.optim.max_epoch
      )
  
label_desc: Use image node_id 2 for calling a global function with example usage: is_eval_epoch(cur_epoch) and returns: unknown