def METHOD_NAME():
    weakset = register_instances_in_weakset()
    test1 = OphydObject(name="test1")
    assert test1 in weakset
    test2 = OphydObject(name="test1")
    assert test2 in weakset
    weakdict = register_instances_keyed_on_name()
    test1 = OphydObject(name="test1")
    assert weakdict["test1"] == test1
    test2 = OphydObject(name="test2")
    assert weakdict["test2"] == test2
    assert OphydObject._OphydObject__any_instantiated is True
    with pytest.raises(RuntimeError):
        register_instances_in_weakset(fail_if_late=True)
    with pytest.raises(RuntimeError):
        register_instances_keyed_on_name(fail_if_late=True)