def METHOD_NAME(cls):
    """setup tmp folder for testing with samples and custom additions by subclasses"""
    try:
        cls._root = tempfile.mkdtemp()
        shutil.copytree('samples', os.path.join(cls._root, 'samples'))
        cls.prepare_directory(cls._root)
    except Exception as e:
        try:
            cls.tearDownClass()
        except Exception as e2:
            pass
        raise