code: def check_fail(fn, *args, **kwargs):
      try:
          fn(*args, **kwargs)
          return False
      except:
          return True
  
file_path: dgl/tests/utils/checks.py
imports: import backend
  import dgl
  import pytest
  from dgl.base import is_internal_column
label_desc: Use image node_id 1 for calling a global function with example usage: check_fail(fn) and returns: False, True