@staticmethod
    def get_flavors(flavors=None, count=2):
        if flavors is None:
            flavors = FakeServer.create_flavors(count)
        return mock.MagicMock(side_effect=flavors)
Initialize ``LazyView`` instance for view that would be imported from
dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/compute/v2/fakes.py/FakeFlavor.get_flavors--crossover with--dataset/ETHPy150Open playpauseandstop/Flask-LazyViews/flask_lazyviews/utils.py/LazyView.__init__