def METHOD_NAME():
    pagerInterface = FakeEntityReferencePagerInterface()
    nonlocal weak_interface_ref
    weak_interface_ref = weakref.ref(pagerInterface)
    pager = EntityReferencePager(pagerInterface, a_host_session)
    del pagerInterface
    assert weak_interface_ref() is not None
    # The pager is still in scope until this method exits