Modelisation of Containment in Sage

There are a lot of different usage of containment:

Possible Usage:

Notes:

Possible Syntaxes: Let P be a parent and x a python data structure