def METHOD_NAME(context, spec, key, check):
    index, ifname = context.default_interface
    vlan_name = context.new_ifname
    vlan_id = 101
    context.ipr.link(
        'add',
        ifname=vlan_name,
        kind='vlan',
        link=index,
        vlan_id=vlan_id,
        **spec
    )
    (vlan,) = context.ipr.poll(context.ipr.link, 'dump', ifname=vlan_name)
    assert vlan.get('ifname') == vlan_name
    assert vlan.get('link') == index
    assert vlan.get(('linkinfo', 'data', 'vlan_id')) == vlan_id
    assert vlan.get(key) == check