code: def run_comp_nocomp(function, *inputs, **kwargs):
      c_function = torch.compile(function)
  
      f_res = function(*inputs)
      cf_res = c_function(*inputs)
  
      if not (
          math.isinf(kwargs.get("atol", 0.0))
          or math.isinf(kwargs.get("rtol", 0.0))
      ):
          torch.testing.assert_close(f_res, cf_res, **kwargs)
  
imports: import math
  import unittest
  from typing import List, Tuple, Union
  import torch
  from torch._inductor import config
  from torch.testing._internal.common_cuda import SM80OrLater
  from torch.testing._internal.common_device_type import instantiate_device_type_tests
  from torch.testing._internal.common_nn import NNTestCase
  from torch.testing._internal.common_utils import IS_WINDOWS, parametrize, run_tests, TEST_CUDA
  from torch.utils._triton import has_triton
label_desc: Use image node_id 3 for calling a global function with example usage: run_comp_nocomp(function) without return types