code: def get_exp_dir_num(parent_dir: str) -> int:
      
      return max([int(fn.split(".")[0])
                  for fn in os.listdir(parent_dir) if fn.split(".")[0].isdigit()]
                      + [-1])
docs: Gets the number of the current experiment directory.