code: def flip(tensor, is_label=False):
      """Flip an image or a set of heatmaps left-right
  
      Arguments:
          tensor {numpy.array or torch.tensor} -- [the input image or heatmaps]
  
      Keyword Arguments:
          is_label {bool} -- [denote wherever the input is an image or a set of heatmaps ] (default: {False})
      """
      if not torch.is_tensor(tensor):
          tensor = torch.from_numpy(tensor)
  
      if is_label:
          tensor = shuffle_lr(tensor).flip(tensor.ndimension() - 1)
      else:
          tensor = tensor.flip(tensor.ndimension() - 1)
  
      return tensor
  
imports: import os
  import sys
  import errno
  import torch
  import math
  import numpy
  import cv2
  from skimage import io
  from skimage import color
  from numba import jit
  from urllib.parse import urlparse
  from torch.hub import download_url_to_file, HASH_REGEX
label_desc: Use image node_id 11 for calling a global function with example usage: flip(tensor, is_label) and returns: tensor