code: def set_fp16(fp16_enabled: bool):
      global FP16_ENABLED
  
      if fp16_enabled:
          if not cuda.CUDA_ENABLED:
              raise RuntimeError(
                  "Cuda is not available, should not running fp16..."
              )
  
          FP16_ENABLED = fp16_enabled
  
imports: from contextlib import contextmanager
  from .None import cuda
label_desc: Use image node_id 2 for calling a global function with example usage: set_fp16(fp16_enabled) without return types