class_docstr: Test that the lookup tables correctly pair node choices and
  function choices for using the DCT/DST as interpolators.
class_docstr_tok: ["Test","that","the","lookup","tables","correctly","pair","node","choices","and","function","choices","for","using","the","DCT\/DST","as","interpolators","."]
code: def test_lookups(self):
      n = rand.randint(10, 20)
      j = rand.randint(5, n) - 3
      for transform in real_transforms:
          nodes = nodes_lookup[transform](n)
          data = interpolated_function_lookup[transform](j, nodes)
          output = numpy.empty_like(data)
          plan = pyfftw.FFTW(data, output, direction=[transform])
          data[:] = interpolated_function_lookup[transform](j, nodes)
          plan.execute()
          tol = 4 * j * n * 1e-16
          if transform == "FFTW_RODFT00":
              self.assertTrue(abs(output[j] - n - 1) < tol)
          elif transform == "FFTW_REDFT00":
              self.assertTrue(abs(output[j] - n + 1) < tol)
          else:
              self.assertTrue(abs(output[j] - n) < tol)
  
imports: from __future__ import division
  import itertools
  import random
  import unittest
  import numpy
  import pyfftw
  from pyfftw import _supported_types
  from .test_pyfftw_base import run_test_suites
label_desc: Use image node_id 1 for calling the TestRealToRealLookups obj's underlying member method code with example usage: obj.test_lookups() without return types