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
  
      if args.flip_horizontal:
          test_config["flip_horizontal"] = args.flip_horizontal
  
      if args.flip_vertical:
          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/deploy/slim/quant/qat_val.py
imports: import argparse
  from paddleslim import QAT
  from paddleseg.cvlibs import Config, SegBuilder
  from paddleseg.core import evaluate
  from paddleseg.utils import logger, utils
  from qat_config import quant_config
  from qat_train import skip_quant
label_desc: Use image node_id 1 for calling a global function with example usage: get_test_config(cfg, args) and returns: test_config