code: def check_exists(x, inverse=False, message=""):
      # not_exists
      if inverse and ivy.exists(x):
          raise ivy.utils.exceptions.IvyException(
              "arg must be None" if message == "" else message
          )
      # exists
      elif not inverse and not ivy.exists(x):
          raise ivy.utils.exceptions.IvyException(
              "arg must not be None" if message == "" else message
          )
  
imports: import ivy
label_desc: Use image node_id 6 for calling a global function with example usage: check_exists(x, inverse, message) without return types