def create_version(self, task, take_name):
        """A helper method for creating a new version

        :param task: the task
        :param take_name: the take_name name
        :return: the Version instance
        """
        # just renew the scene
        v = Version(task=task, take_name=take_name)
        v.update_paths()

        db.DBSession.add(v)
        db.DBSession.commit()

        # create a file
        try:
            os.makedirs(os.path.dirname(v.absolute_full_path))
        except __HOLE__:  # dir exists
            pass

        with open(v.absolute_full_path, 'w+'):
            pass

        return v
dataset/ETHPy150Open eoyilmaz/anima/tests/ui/test_version_mover.py/VersionMoverTestCase.create_version