code: def test_dense(self):
      # Should be more accurate for dense meshes
      funcs = [
          lambda x, y: x**2,
          lambda x, y: y**2,
          lambda x, y: x**2 - y**2,
          lambda x, y: x * y,
          lambda x, y: np.cos(2 * np.pi * x) * np.sin(2 * np.pi * y),
      ]
  
      np.random.seed(4321)  # use a different seed than the check!
      grid = np.r_[
          np.array([(0, 0), (0, 1), (1, 0), (1, 1)], dtype=float),
          np.random.rand(30 * 30, 2),
      ]
  
      for j, func in enumerate(funcs):
          self._check_accuracy(
              func,
              x=grid,
              tol=1e-9,
              atol=5e-3,
              rtol=1e-2,
              err_msg="Function %d" % j,
          )
          self._check_accuracy(
              func,
              x=grid,
              tol=1e-9,
              atol=5e-3,
              rtol=1e-2,
              err_msg="Function %d" % j,
              rescale=True,
          )
  
imports: from __future__ import division, print_function, absolute_import
  import os
  import numpy
  from numpy.testing import assert_equal, assert_allclose, assert_almost_equal
  from pytest import raises
  import pytest
  from scipy._lib._numpy_compat import suppress_warnings
  import scipy.interpolate.interpnd
  import scipy.spatial.qhull
  import pickle
label_desc: Use image node_id 7 for calling the TestCloughTocher2DInterpolator obj's underlying member method code with example usage: obj.test_dense() without return types