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

    """Remove special directories which are created during the tests.
    """
    def fin_remove_additional_dirs():
        if os.path.isdir('fake-project'):
            utils.rmtree('fake-project')
        if os.path.isdir('fake-project-input-extra'):
            utils.rmtree('fake-project-input-extra')
    request.addfinalizer(fin_remove_additional_dirs)