code: def merge_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
      if args.use_multilabel:
          test_config["use_multilabel"] = args.use_multilabel
      return test_config
  
file_path: PaddleSeg/tools/val.py
imports: import argparse
  import os
  import paddle
  from paddleseg.cvlibs import manager, Config, SegBuilder
  from paddleseg.core import evaluate
  from paddleseg.utils import get_sys_env, logger, utils
label_desc: Use image node_id 2 for calling a global function with example usage: merge_test_config(cfg, args) and returns: test_config