code: def compare_helper_cpu(op, inA, inB, nc, dtype):
      numpy_result = math_helper(
          np, op, inA, inB, dtype=np.float32
      ).astype(dtype)
  
      nervanaCPU_result = math_helper(
          nc, op, inA, inB, dtype=dtype
      ).get()
      allclose_with_out(
          numpy_result, nervanaCPU_result, rtol=0, atol=1e-5
      )
  
imports: from __future__ import print_function
  import numpy
  import itertools
  import pytest
  from utils import tensors_allclose, allclose_with_out
label_desc: Use image node_id 6 for calling a global function with example usage: compare_helper_cpu(op, inA, inB, nc, dtype) without return types