def METHOD_NAME(demoinfo: DemoInfo):
    with open(demo_extras_file, "rb") as demo_extras:
        demo_extras_name = os.path.basename(demo_extras.name)
        result = demoinfo.add_demoextras(demo_id, demo_extras.read(), demo_extras_name)
        assert result.is_err()