code: def main(args):
      assert (
          args.config is not None
      ), "No configuration file specified, please set --config"
      cfg = Config(args.config, opts=args.opts)
      builder = SegBuilder(cfg)
      test_config = merge_test_config(cfg, args)
  
      utils.show_env_info()
      utils.show_cfg_info(cfg)
      utils.set_device(args.device)
  
      model = builder.model
      transforms = Compose(builder.val_transforms)
      val_dataset = builder.val_dataset
  
      logger.info(
          "The number of samples to analyse: {}".format(
              len(val_dataset.file_list)
          )
      )
  
      analyse(
          model,
          model_path=args.model_path,
          transforms=transforms,
          val_dataset=val_dataset,
          save_dir=args.save_dir,
          **test_config,
      )
  
file_path: PaddleSeg/tools/analyse.py
imports: import argparse
  from paddleseg.cvlibs import manager, Config, SegBuilder
  from paddleseg.utils import get_sys_env, logger, utils
  from paddleseg.core import analyse
  from paddleseg.transforms import Compose
label_desc: Use image node_id 3 for calling a global function with example usage: main(args) without return types