code: def noticeCudaCheck():
      global xp, cache
      cache = {}
      if ui.cudaCheck.isChecked():
          if _has_cupy:
              xp = cp
          else:
              xp = np
              ui.cudaCheck.setChecked(False)
      else:
          xp = np
      mkData()
  
file_path: pyqtgraph/pyqtgraph/examples/VideoSpeedTest.py
imports: import argparse
  import itertools
  import sys
  import numpy
  from utils import FrameCounter
  import pyqtgraph
  from pyqtgraph.Qt import QtCore, QtGui, QtWidgets
  import VideoTemplate_generic
label_desc: Use image node_id 5 for calling a global function with example usage: noticeCudaCheck() without return types