def METHOD_NAME(self):
    port = mb.Port()
    compound = mb.Compound()
    compound.add(port, label="foo")
    assert port.access_labels == {"['foo']"}
    compound2 = mb.Compound(name="C2")
    compound2.add(compound, label="bar")
    assert port.access_labels == {"['bar']['foo']"}