code: def plot_skeleton_2d(all_frames, joints_2d):
      out_frames = []
      radius = max(
          4, (np.mean(all_frames[0].shape[:2]) * 0.01).astype(int)
      )
      for idx in range(len(all_frames)):
          for pair in pairs:
              i, j = pair
              pt1, pt2 = joints_2d[idx, i], joints_2d[idx, j]
              x11, y11 = pt1
              x22, y22 = pt2
              if pair in pairs_left:
                  color = (205, 0, 0)
              elif pair in pairs_right:
                  color = (0, 205, 0)
              else:
                  color = (0, 165, 255)
              cv2.line(
                  all_frames[idx],
                  (int(x11), int(y11)),
                  (int(x22), int(y22)),
                  color,
                  radius - 2,
              )
  
file_path: insightface/body/human_pose/ambiguity_aware/scripts/plot1.py
imports: import os
  import cv2
  import random
  import os.path
  import numpy
  import matplotlib.pyplot
  import matplotlib.animation
  from mpl_toolkits.mplot3d import Axes3D
  import h5py
  from tqdm import trange
  import argparse
label_desc: Use image node_id 1 for calling a global function with example usage: plot_skeleton_2d(all_frames, joints_2d) without return types