code: def is_opencv_available():
      """
      Check if opencv is available with simple python imports.
  
      To install opencv, simply do: `pip install opencv-python`
      regardless of whether using conda or pip environment.
      """
      try:
          import cv2  # NOQA
  
          opencv_available = True
      except ImportError:
          opencv_available = False
      return opencv_available
  
imports: import collections
  import collections.abc
  import logging
  import os
  import random
  import sys
  import tempfile
  import time
  from functools import partial, wraps
  from typing import Tuple
  import numpy
  import pkg_resources
  import torch
  import torch.multiprocessing
  from iopath.common.file_io import g_pathmgr
  from scipy.sparse import csr_matrix
  from vissl.utils.extract_features_utils import ExtractedFeaturesLoader
label_desc: Use image node_id 3 for calling a global function with example usage: is_opencv_available() and returns: opencv_available