code: def annotate_keypoint_results(
      result: Results, visualize_skeleton: bool
  ):
      annotator = Annotator(
          np.ascontiguousarray(result.orig_img[:, :, ::-1])
      )
      key_points = result.keypoints.data.numpy()
      for idx in range(key_points.shape[0]):
          annotator.kpts(key_points[idx], kpt_line=visualize_skeleton)
      return annotator.im
  
file_path: wandb/wandb/integration/ultralytics/pose_utils.py
imports: from typing import Any, Optional
  import numpy
  from PIL import Image
  from ultralytics.engine.results import Results
  from ultralytics.models.yolo.pose import PosePredictor
  from ultralytics.utils.plotting import Annotator
  import wandb
  from .bbox_utils import get_boxes, get_ground_truth_bbox_annotations
label_desc: Use image node_id 1 for calling a global function with example usage: annotate_keypoint_results(result, visualize_skeleton) and returns: annotator