def METHOD_NAME() -> Container:
    METHOD_NAME = Container._INSTANCE
    # erase singleton
    Container._INSTANCE = None
    yield Container()
    # restore the old container
    Container._INSTANCE = METHOD_NAME