def METHOD_NAME(cls):
    cls._orig_dir = os.getcwd()
    if sys.version_info[0] < 3:
        temp_path = cls._tmpdir = tempfile.mkdtemp()
    else:
        cls._tmpdir = tempfile.TemporaryDirectory()
        temp_path = cls._tmpdir.name
    os.chdir(temp_path)
    for dir1 in "abcd":
        for dir1x in [dir1, dir1 + 'x']:
            for dir2 in "xyz":
                dir_path = pjoin(dir1x, dir2)
                os.makedirs(dir_path)
                with writable_file(dir_path, "file2_pyx.pyx") as f:
                    f.write(u'""" PYX """')
                with writable_file(dir_path, "file2_py.py") as f:
                    f.write(u'""" PY """')
            with writable_file(dir1x, "file1_pyx.pyx") as f:
                f.write(u'""" PYX """')
            with writable_file(dir1x, "file1_py.py") as f:
                f.write(u'""" PY """')