code: def compare_float_value(value, expect, msg):
      if math.isfinite(value):
          assert (
              np.abs(value - expect) < 1e-5
          ), f"{value} vs {expect}, {msg}"
      elif math.isnan(value):
          assert math.isnan(expect), f"{value} vs {expect}, {msg}"
      elif math.isinf(value):
          assert math.isinf(expect), f"{value} vs {expect}, {msg}"
  
imports: import math
  import random
  import numpy
  import tvm
  import tvm.testing
  import pytest
  from tvm import tir
  from tvm.script import tir
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: compare_float_value(value, expect, msg) without return types