code: def check_eval(expr, args, expected_result, mod=None, rtol=1e-07):
      # TODO(tqchen) add more types once the schedule register is fixed.
      for target in ["llvm"]:
          dev = tvm.device(target, 0)
          if not testing.device_enabled(target):
              return
          func = relay.create_executor(
              mod=mod, device=dev, target=target
          ).evaluate(expr)
          result = func if args is None else func(*args)
          # use testing which also set atol
          testing.assert_allclose(
              result.numpy(), expected_result, rtol=rtol
          )
  
imports: import numpy
  import pytest
  import tvm
  from tvm import testing
  from tvm import nd
  from tvm import relay
  from tvm.runtime import container
  from tvm.relay.backend.interpreter import RefValue, ConstructorValue
  from tvm.relay.scope_builder import ScopeBuilder
label_desc: Use image node_id 1 for calling a global function with example usage: check_eval(expr, args, expected_result, mod, rtol) without return types