code: def flip_joints_3d(joints_3d, width, joint_pairs):
      """Flip 3d joints.
  
      Parameters
      ----------
      joints_3d : numpy.ndarray
          Joints in shape (num_joints, 3, 2)
      width : int
          Image width.
      joint_pairs : list
          List of joint pairs.
  
      Returns
      -------
      numpy.ndarray
          Flipped 3d joints with shape (num_joints, 3, 2)
  
      """
      joints = joints_3d.copy()
      # flip horizontally
      joints[:, 0, 0] = width - joints[:, 0, 0] - 1
      # change left-right parts
      for pair in joint_pairs:
          joints[pair[0], :, 0], joints[pair[1], :, 0] = (
              joints[pair[1], :, 0],
              joints[pair[0], :, 0].copy(),
          )
          joints[pair[0], :, 1], joints[pair[1], :, 1] = (
              joints[pair[1], :, 1],
              joints[pair[0], :, 1].copy(),
          )
  
      joints[:, :, 0] *= joints[:, :, 1]
      return joints
  
imports: from __future__ import absolute_import
  from __future__ import division
  import math
  import random
  import numpy
  import mxnet
  from mxnet import nd, image
  from mxnet.gluon.data.vision import transforms
  from ...utils.filesystem import try_import_cv2
label_desc: Use image node_id 2 for calling a global function with example usage: flip_joints_3d(joints_3d, width, joint_pairs) and returns: joints