code: def make_colorwheel():
      """
      Generates a color wheel for optical flow visualization as presented in:
          Baker et al. "A Database and Evaluation Methodology for Optical Flow" (ICCV, 2007)
          URL: http://vision.middlebury.edu/flow/flowEval-iccv07.pdf
      According to the C++ source code of Daniel Scharstein
      According to the Matlab source code of Deqing Sun
      """
  
      RY = 15
      YG = 6
      GC = 4
      CB = 11
      BM = 13
      MR = 6
  
      ncols = RY + YG + GC + CB + BM + MR
      colorwheel = np.zeros((ncols, 3))
      col = 0
  
      # RY
      colorwheel[0:RY, 0] = 255
      colorwheel[0:RY, 1] = np.floor(255 * np.arange(0, RY) / RY)
      col = col + RY
      # YG
      colorwheel[col : col + YG, 0] = 255 - np.floor(
          255 * np.arange(0, YG) / YG
      )
      colorwheel[col : col + YG, 1] = 255
      col = col + YG
      # GC
      colorwheel[col : col + GC, 1] = 255
      colorwheel[col : col + GC, 2] = np.floor(
          255 * np.arange(0, GC) / GC
      )
      col = col + GC
      # CB
      colorwheel[col : col + CB, 1] = 255 - np.floor(
          255 * np.arange(CB) / CB
      )
      colorwheel[col : col + CB, 2] = 255
      col = col + CB
      # BM
      colorwheel[col : col + BM, 2] = 255
      colorwheel[col : col + BM, 0] = np.floor(
          255 * np.arange(0, BM) / BM
      )
      col = col + BM
      # MR
      colorwheel[col : col + MR, 2] = 255 - np.floor(
          255 * np.arange(MR) / MR
      )
      colorwheel[col : col + MR, 0] = 255
      return colorwheel
  
imports: import os
  import numpy
  import platform
  import random
  import cv2
  from nvidia.dali.pipeline import pipeline_def
  from nvidia.dali import fn, types
  from test_utils import get_dali_extra_path, get_arch
  from nose_utils import raises, assert_raises
  from nose import SkipTest
label_desc: Use image node_id 5 for calling a global function with example usage: make_colorwheel() and returns: colorwheel