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 numpy
  from scipy import special
  from scipy import stats
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import special_math
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math.gradient import value_and_gradient
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