def METHOD_NAME(COMPRESSION_LEVEL):
    # Create MyConfig with all options from fontTools.config plus some
    my_options = Options(Config.options)
    MY_OPTION = my_options.register("custom:my_option", "help", "default", str, any)
    class MyConfig(AbstractConfig):
        options = my_options
    ttFont = TTFont(cfg=MyConfig({"custom:my_option": "my_value"}))
    assert 0 == ttFont.cfg.get(COMPRESSION_LEVEL)
    assert "my_value" == ttFont.cfg.get(MY_OPTION)
    # but the default Config doens't know about MY_OPTION
    with pytest.raises(ConfigUnknownOptionError):
        TTFont(cfg={MY_OPTION: "my_value"})