code: def test_values_eq_approx():
      a = rand_gpuarray(20, dtype="float32")
      assert GpuArrayType.values_eq_approx(a, a)
      b = a.copy()
      b[0] = np.asarray(b[0]) + 1.0
      assert not GpuArrayType.values_eq_approx(a, b)
      b = a.copy()
      b[0] = -np.asarray(b[0])
      assert not GpuArrayType.values_eq_approx(a, b)
  
imports: from __future__ import absolute_import, print_function, division
  import os
  import nose
  import numpy
  import theano
  from theano.compat import PY3
  from theano import config
  from theano.compile import DeepCopyOp, Rebroadcast, ViewOp
  from theano.misc.pkl_utils import CompatUnpickler
  from .config import test_ctx_name
  from .test_basic_ops import rand_gpuarray
  from ..type import GpuArrayType, gpuarray_shared_constructor
  import pygpu
label_desc: Use image node_id 4 for calling a global function with example usage: test_values_eq_approx() without return types