code: def draw_pred(
      pred: Prediction,
      denormalize_fn: Optional[callable] = None,
      display_label: bool = True,
      display_score: bool = True,
      display_bbox: bool = True,
      display_mask: bool = True,
      font_path: Optional[os.PathLike] = DEFAULT_FONT_PATH,
      font_size: Union[int, float] = 12,
      label_color: Union[
          np.array, list, tuple, str
      ] = "#C4C4C4",  # Mild Gray
      mask_blend: float = 0.5,
      mask_border_thickness: int = 7,
      color_map: Optional[dict] = None,  # label -> color mapping
      prettify: bool = True,
      prettify_func: Callable = str.capitalize,
      return_as_pil_img=False,
      # Args for plotting specific labels
      exclude_labels: List[str] = [],
      include_only: List[str] = None,
  ):
      return draw_sample(
          sample=pred.pred,
          denormalize_fn=denormalize_fn,
          display_label=display_label,
          display_score=display_score,
          display_bbox=display_bbox,
          display_mask=display_mask,
          font_path=font_path,
          font_size=font_size,
          label_color=label_color,
          mask_blend=mask_blend,
          mask_border_thickness=mask_border_thickness,
          color_map=color_map,
          prettify=prettify,
          prettify_func=prettify_func,
          return_as_pil_img=return_as_pil_img,
          exclude_labels=exclude_labels,
          include_only=include_only,
      )
  
file_path: icevision/icevision/visualize/draw_data.py
imports: from icevision.imports import *
  from icevision.data import *
  from icevision.core import *
  from icevision.visualize.utils import *
  from matplotlib.colors import LinearSegmentedColormap
  from PIL import Image, ImageFont, ImageDraw
  import PIL
label_desc: Use image node_id 5 for calling a global function with example usage: draw_pred(pred, denormalize_fn, display_label, display_score, display_bbox, display_mask, font_path, font_size, label_color, mask_blend, mask_border_thickness, color_map, prettify, prettify_func, return_as_pil_img, exclude_labels, include_only) and returns: draw_sample