def document_function(self, func_name):
        func = getattr(self.module, func_name)

        print("Documenting function %s" % func_name, file=sys.stderr)

        if hasattr(self.module, 'test_' + func_name):
            example_code = getsource(
                                getattr(self.module, 'test_' + func_name))
            example_code = """
import numpy
from mayavi.mlab import *

%s
            """ % example_code
        else:
            example_code = None

        image_file = self.image_dir + os.sep + \
                        self.module.__name__.replace('.', '_') + '_' \
                        + func_name + '.jpg'

        if not os.path.exists(image_file):
            image_file = None
        else:
            image_file = relpath(image_file, self.out_dir)

        documentation = document_function(func,
                                func_name=func_name,
                                example_code=example_code,
                                image_file=image_file)

        return documentation
Test for mixed dataset operations: check tiles.
dataset/ETHPy150Open enthought/mayavi/mlab_reference.py/ModuleReference.document_function--crossover with--dataset/ETHPy150Open GeoscienceAustralia/agdc/tests/test_abstract_ingester.py/TestIngester.test_mixed_ops_tiles