code: def flip_back(output_flipped, matched_parts):
      """
      ouput_flipped: numpy.ndarray(batch_size, num_joints, height, width)
      """
      assert (
          output_flipped.ndim == 4
      ), "output_flipped should be [batch_size, num_joints, height, width]"
  
      output_flipped = output_flipped[:, :, :, ::-1]
  
      for pair in matched_parts:
          tmp = output_flipped[:, pair[0], :, :].copy()
          output_flipped[:, pair[0], :, :] = output_flipped[
              :, pair[1], :, :
          ]
          output_flipped[:, pair[1], :, :] = tmp
  
      return output_flipped
  
file_path: insightface/parsing/dml_csr/utils/transforms.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import cv2
label_desc: Use image node_id 1 for calling a global function with example usage: flip_back(output_flipped, matched_parts) and returns: output_flipped