code: def check_call(ret):
      """Check the return value of C API call.
  
      This function will raise an exception when an error occurs.
      Wrap every API call with this function.
  
      Parameters
      ----------
      ret : int
          return value from API calls.
      """
      if ret != 0:
          raise get_last_ffi_error()
  
imports: import re
  import atexit
  import ctypes
  import os
  import sys
  import inspect
  import platform
  import numpy
  from .None import libinfo
label_desc: Use image node_id 8 for calling a global function with example usage: check_call(ret) without return types