code: def get_opencv_major_version(lib=None):
      # if the supplied library is None, import OpenCV
      if lib is None:
          import cv2 as lib
  
      # return the major version number
      return int(lib.__version__.split(".")[0])
  
file_path: imutils/imutils/convenience.py
imports: import numpy
  import cv2
  import sys
label_desc: Use image node_id 13 for calling a global function with example usage: get_opencv_major_version(lib) and returns: int