code: def check_cuda(
      use_cuda,
      err="\nYou can not set use_gpu = True in the model because you are using paddlepaddle-cpu.\n \
      Please: 1. Install paddlepaddle-gpu to run your models on GPU or 2. Set use_gpu = False to run models on CPU.\n",
  ):
      try:
          if (
              use_cuda == True
              and fluid.is_compiled_with_cuda() == False
          ):
              print(err)
              sys.exit(1)
      except Exception as e:
          pass
  
file_path: PaddleHub/modules/video/classification/videotag_tsn_lstm/resource/utils/utility.py
imports: import os
  import sys
  import signal
  import logging
  import paddle.fluid
label_desc: Use image node_id 2 for calling a global function with example usage: check_cuda(use_cuda, err) without return types