def METHOD_NAME(sample, format, wrong):
    info = file_info(sample, **wrong)
    assert info.format == format
    assert not info.missing
    assert any(key.startswith('kwargs') for key in info.errors)