class_docstr: Common set of functionality for performing tests on the real to
  real transforms. This is not implemented as a distinct test class
  (inheriting from unittest.TestCase) because its `__init__` method
  takes multiple arguments as input which set up the size and
  directions of the transform.
class_docstr_tok: ["Common","set","of","functionality","for","performing","tests","on","the","real","to","real","transforms",".","This","is","not","implemented","as","a","distinct","test","class","(","inheriting","from","unittest.TestCase",")","because","its","`","__init__","`","method","takes","multiple","arguments","as","input","which","set","up","the","size","and","directions","of","the","transform","."]
code: def test_against_random_data(self):
      data = numpy.random.rand(*self.dims).astype(
          self.dtype, copy=False
      )
      self._input_array[:] = data
      self.plan.execute()
      self._input_array[:] = self._output_array[:]
      self.inverse_plan.execute()
  
      data *= self._normalisation_factor
      err = (
          numpy.mean(numpy.abs(data - self._output_array))
          / self._normalisation_factor
      )
      return err < self.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 3 for calling the TestRealTransform obj's underlying member method code with example usage: obj.test_against_random_data() and returns: unknown