code: def get_fold_repeat_cnt(model_path):
      training_logs = [
          f for f in os.listdir(model_path) if "_training.log" in f
      ]
      fold_cnt, repeat_cnt = 0, 0
      for fname in training_logs:
          fold, repeat = learner_name_to_fold_repeat(fname)
          if fold is not None:
              fold_cnt = max(fold_cnt, fold)
          if repeat is not None:
              repeat_cnt = max(repeat_cnt, repeat)
  
      fold_cnt += 1  # counting from 0
      repeat_cnt += 1
  
      return fold_cnt, repeat_cnt
  
imports: import os
label_desc: Use image node_id 3 for calling a global function with example usage: get_fold_repeat_cnt(model_path) and returns: fold_cnt,  repeat_cnt