code: def get_test_config(cfg, args):
      test_config = cfg.test_config
      if "aug_eval" in test_config:
          test_config.pop("aug_eval")
      if args.aug_pred:
          test_config["aug_pred"] = args.aug_pred
          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
  
      if args.custom_color:
          test_config["custom_color"] = args.custom_color
  
      return test_config
  
file_path: PaddleSeg/contrib/RSSegBenchmark/c2fnet/predict.py
imports: import argparse
  import os
  import paddle
  import models
  from paddleseg.cvlibs import manager
  from paddleseg.utils import get_sys_env, logger, get_image_list
  from paddleseg.transforms import Compose
  from cvlibs import Config
  from core import predict
label_desc: Use image node_id 2 for calling a global function with example usage: get_test_config(cfg, args) and returns: test_config