def METHOD_NAME():
    """Test the tempconfig context manager."""
    original = config.copy()
    with tempconfig({"frame_width": 100, "frame_height": 42}):
        # check that config was modified correctly
        assert config["frame_width"] == 100
        assert config["frame_height"] == 42
        # check that no keys are missing and no new keys were added
        assert set(original.keys()) == set(config.keys())
    # check that the keys are still untouched
    assert set(original.keys()) == set(config.keys())
    # check that config is correctly restored
    for k, v in original.items():
        if isinstance(v, np.ndarray):
            np.testing.assert_allclose(config[k], v)
        else:
            assert config[k] == v