def METHOD_NAME(inst):
    inst_view = InstView(inst)
    # Setup view now because inline strings might use it during defn
    for sub_inst in getattr(type(inst), "instances", []):
        setattr(inst, sub_inst.name, InstView(sub_inst, inst_view))