def METHOD_NAME():
    vars = [("vs", "am"), ("gear",)]
    lst = _margins(vars, True)
    assert lst == [
        [],
        ["vs", "am"],
        ["am"],
        ["gear"],
        ["vs", "am", "gear"],
        ["am", "gear"],
    ]
    lst = _margins(vars, False)
    assert lst == []
    lst = _margins(vars, ["vs"])
    assert lst == [[], ["vs", "am"]]
    lst = _margins(vars, ["am"])
    assert lst == [[], ["am"]]
    lst = _margins(vars, ["vs", "am"])
    assert lst == [[], ["vs", "am"], ["am"]]
    lst = _margins(vars, ["gear"])
    assert lst == [[], ["gear"]]