code: def visualize_results(
      image,
      bbox_res,
      mask_res,
      segm_res,
      keypoint_res,
      pose3d_res,
      im_id,
      catid2name,
      threshold=0.5,
  ):
      """
      Visualize bbox and mask results
      """
      if bbox_res is not None:
          image = draw_bbox(
              image, im_id, catid2name, bbox_res, threshold
          )
      if mask_res is not None:
          image = draw_mask(image, im_id, mask_res, threshold)
      if segm_res is not None:
          image = draw_segm(
              image, im_id, catid2name, segm_res, threshold
          )
      if keypoint_res is not None:
          image = draw_pose(image, keypoint_res, threshold)
      if pose3d_res is not None:
          pose3d = np.array(pose3d_res[0]["pose3d"]) * 1000
          image = draw_pose3d(image, pose3d, visual_thread=threshold)
      return image
  
file_path: PaddleDetection/ppdet/utils/visualizer.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import os
  import numpy
  from PIL import Image, ImageDraw, ImageFont
  import cv2
  import math
  from .colormap import colormap
  from ppdet.utils.logger import setup_logger
  from ppdet.utils.compact import imagedraw_textsize_c
  from ppdet.utils.download import get_path
label_desc: Use image node_id 1 for calling a global function with example usage: visualize_results(image, bbox_res, mask_res, segm_res, keypoint_res, pose3d_res, im_id, catid2name, threshold) and returns: image