def containerize(coll):
if isinstance(coll, Container):<EOL><INDENT>[setattr(coll, k, containerize(v)) for (k, v) in coll.items()]<EOL>return coll<EOL><DEDENT>elif isinstance(coll, dict):<EOL><INDENT>return containerize(Container(**coll))<EOL><DEDENT>elif isinstance(coll, list):<EOL><INDENT>for j, i in enumerate(coll):<EOL><INDENT>if isinstance(i, dict):<EOL><INDENT>coll[j] = containerize(Container(**i))<EOL><DEDENT><DEDENT>return coll<EOL><DEDENT>else:<EOL><INDENT>return coll<EOL><DEDENT>
Walk attribute fields passed from an SBP message and convert to
    Containers where appropriate. Needed for Construct proper
    serialization.

    Parameters
    ----------
    coll : dict