code: def flip_heatmaps(heatmaps):
      """Flip heatmaps horizontally."""
      keypoints, flip_map = get_keypoints()
      heatmaps_flipped = heatmaps.copy()
      for lkp, rkp in flip_map.items():
          lid = keypoints.index(lkp)
          rid = keypoints.index(rkp)
          heatmaps_flipped[:, rid, :, :] = heatmaps[:, lid, :, :]
          heatmaps_flipped[:, lid, :, :] = heatmaps[:, rid, :, :]
      heatmaps_flipped = heatmaps_flipped[:, :, :, ::-1]
      return heatmaps_flipped
  
file_path: dense-pose/detectron/utils/keypoints.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import cv2
  import numpy
  from detectron.core.config import cfg
  import detectron.utils.blob
label_desc: Use image node_id 4 for calling a global function with example usage: flip_heatmaps(heatmaps) and returns: heatmaps_flipped