code: def check_all(
      results, message="one of the args is False", as_array=True
  ):
      if (as_array and not ivy.all(results)) or (
          not as_array and not all(results)
      ):
          raise ivy.utils.exceptions.IvyException(message)
  
imports: import ivy
label_desc: Use image node_id 10 for calling a global function with example usage: check_all(results, message, as_array) without return types