code: def test_infer_mstest(self):
      cfg = load_config(self.mstest_cfg_file)
      trainer = Trainer(cfg, mode="test")
  
      cfg.weights = "https://paddledet.bj.bcebos.com/models/faster_rcnn_r34_fpn_1x_coco.pdparams"
      trainer.load_weights(cfg.weights)
      tests_img_root = os.path.join(os.path.dirname(__file__), "imgs")
  
      # input images to predict
      imgs = [
          "coco2017_val2017_000000000139.jpg",
          "coco2017_val2017_000000000724.jpg",
      ]
      imgs = [os.path.join(tests_img_root, img) for img in imgs]
      trainer.predict(
          imgs,
          draw_threshold=0.5,
          output_dir="output",
          save_results=False,
      )
  
file_path: PaddleDetection/ppdet/modeling/tests/test_mstest.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import unittest
  from ppdet.core.workspace import load_config
  from ppdet.engine import Trainer
label_desc: Use image node_id 4 for calling the TestMultiScaleInference obj's underlying member method code with example usage: obj.test_infer_mstest() without return types