code: def get_xxyys(names):
      xxyys = []
      # should be subject, action, camera
      splits = names[0].split("/")
      video_name = "/".join(splits[:-1])
      part_label_path = osp.join(
          root,
          splits[0],
          "MySegmentsMat",
          "PartLabels",
          splits[1]
          + ("cam" + splits[2])
          .replace("cam0", ".54138969")
          .replace("cam2", ".58860488")
          .replace("cam1", ".55011271")
          .replace("cam3", ".60457274")
          + ".mat",
      )
      f = h5py.File(part_label_path, "r")
      for idx, name in enumerate(names):
          partmask = f[f["Feat"][idx * 30, 0]][()].T
          yp, xp = np.where(partmask != 0)
          xmin, xmax = np.min(xp), np.max(xp) + 1
          ymin, ymax = np.min(yp), np.max(yp) + 1
          xxyys.append((xmin, xmax, ymin, ymax))
      f.close()
      return xxyys
  
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 2 for calling a global function with example usage: get_xxyys(names) and returns: xxyys