code: def is_cv2(or_better=False):
      # grab the OpenCV major version number
      major = get_opencv_major_version()
  
      # check to see if we are using *at least* OpenCV 2
      if or_better:
          return major >= 2
  
      # otherwise we want to check for *strictly* OpenCV 2
      return major == 2
  
file_path: imutils/imutils/convenience.py
imports: import numpy
  import cv2
  import sys
label_desc: Use image node_id 10 for calling a global function with example usage: is_cv2(or_better) and returns: unknown, unknown