code: def is_of_supported(device_id=0):
      global is_of_supported_var
      if is_of_supported_var is not None:
          return is_of_supported_var
  
      driver_version_major = 0
      try:
          import pynvml
  
          pynvml.nvmlInit()
          driver_version = pynvml.nvmlSystemGetDriverVersion().decode(
              "utf-8"
          )
          driver_version_major = int(driver_version.split(".")[0])
      except ModuleNotFoundError:
          print("NVML not found")
  
      # there is an issue with OpticalFlow driver in R495 and newer on aarch64 platform
      is_of_supported_var = get_arch(device_id) >= 7.5 and (
          platform.machine() == "x86_64" or driver_version_major < 495
      )
      return is_of_supported_var
  
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 1 for calling a global function with example usage: is_of_supported(device_id) and returns: is_of_supported_var, is_of_supported_var