@classmethod
    def create_strategy(cls, type, *args, **kwargs):
        if type in cls.list_strategies():
            return cls.__strategies[type](*args, **kwargs)
        else:
            raise RuntimeError("No class implements the requested strategy: "
                               "{0}".format(type))
dataset/ETHPy150Open openstack/git-upstream/git_upstream/lib/strategies.py/ImportStrategiesFactory.create_strategy/original