code: def assert_allclose(self, a, b, rtol=1e-6, atol=1e-6, msg=None):
      # from tensorflow
      self.assertEqual(
          a.shape,
          b.shape,
          "Shape mismatch: expected %s, got %s." % (a.shape, b.shape),
      )
      if not np.allclose(a, b, rtol=rtol, atol=atol):
          cond = np.logical_or(
              np.abs(a - b) > atol + rtol * np.abs(b),
              np.isnan(a) != np.isnan(b),
          )
          if a.ndim:
              x = a[np.where(cond)]
              y = b[np.where(cond)]
              print("not close where = ", np.where(cond))
          else:
              # np.where is broken for scalars
              x, y = a, b
          print("not close lhs = ", x)
          print("not close rhs = ", y)
          print("not close dif = ", np.abs(x - y))
          print("not close tol = ", atol + rtol * np.abs(y))
          print("dtype = %s, shape = %s" % (a.dtype, a.shape))
          np.testing.assert_allclose(
              a, b, rtol=rtol, atol=atol, err_msg=msg
          )
  
imports: from __future__ import print_function
  import numpy
  from keras.models import Sequential, Model
  from keras.layers.core import *
  from keras.layers.convolutional import *
  from keras.layers import Dense, Dropout, Input
  from keras.optimizers import RMSprop
  from bigdl.dllib.utils.common import *
  from bigdl.dllib.keras.converter import *
  from bigdl.dllib.keras.converter import WeightLoader, WeightsConverter
  import numpy
  from unittest import TestCase
  import keras
  from bigdl.dllib.nn.keras.keras_utils import *
label_desc: Use image node_id 6 for calling the BigDLTestCase obj's underlying member method code with example usage: obj.assert_allclose(a, b, rtol, atol, msg) without return types