human
Solve the following python programming problem given the following code:
@pytest.fixture(scope=u'function')
def remove_additional_folders(request):
assistant
#Here is the Python program you requested.

    """Remove some special folders which are created by the tests.
    """
    def fin_remove_additional_folders():
        directories_to_delete = [u'tests/test-pyhooks/inputpyhooks', u'inputpyhooks', u'inputhooks', u'tests/test-shellhooks', u'tests/test-hooks']
        for directory in directories_to_delete:
            if os.path.exists(directory):
                utils.rmtree(directory)
    request.addfinalizer(fin_remove_additional_folders)