code: def check_eval(expr, expected_result, mod=None, rtol=1e-07):
      dev = tvm.device("llvm", 0)
      result = create_executor(
          mod=mod, device=dev, target="llvm"
      ).evaluate(expr)
      np.testing.assert_allclose(
          result.numpy(), expected_result, rtol=rtol
      )
  
imports: import pytest
  import numpy
  import tvm
  from tvm import te
  from tvm import relay
  from tvm.relay.analysis import detect_feature
  from tvm.relay import op, create_executor, transform
  from tvm.relay.prelude import Prelude
  from tvm.relay.testing import count, create_workload
  from tvm.relay.analysis import Feature
  from tvm.relay.analysis import check_basic_block_normal_form
label_desc: Use image node_id 2 for calling a global function with example usage: check_eval(expr, expected_result, mod, rtol) without return types