code: def get_test_config(cfg, args):
      test_config = cfg.test_config
      if args.aug_eval:
          test_config["aug_eval"] = args.aug_eval
          test_config["scales"] = args.scales
          test_config["flip_horizontal"] = args.flip_horizontal
          test_config["flip_vertical"] = args.flip_vertical
  
      if args.is_slide:
          test_config["is_slide"] = args.is_slide
          test_config["crop_size"] = args.crop_size
          test_config["stride"] = args.stride
  
      return test_config
  
file_path: PaddleSeg/contrib/RSSegBenchmark/c2fnet/val.py
imports: import argparse
  import os
  import paddle
  import models
  from paddleseg.cvlibs import manager
  from paddleseg.utils import get_sys_env, logger, utils
  from cvlibs import Config
  from core import evaluate
label_desc: Use image node_id 1 for calling a global function with example usage: get_test_config(cfg, args) and returns: test_config