code: def _test_grid(self, dtype, grid_spec, error_spec):
      if self._use_log:
          self._test_grid_log(dtype, grid_spec, error_spec)
      else:
          self._test_grid_no_log(dtype, grid_spec, error_spec)
  
imports: import collections
  import importlib
  import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops.distributions import special_math
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 1 for calling the NdtrTest obj's underlying member method code with example usage: obj._test_grid(dtype, grid_spec, error_spec) without return types