def METHOD_NAME(get_ipython_result):
    module = sys.modules["test_top_level"]
    sys.modules["IPython"] = module
    get_ipython = Mock(return_value=get_ipython_result)
    sys.modules["IPython"].__dict__["get_ipython"] = get_ipython