def METHOD_NAME(bmodel):
    for net in bmodel.net:
        for param in net.parameter:
            for subnet in param.sub_net:
                _id = subnet.id
                for gid, _net in enumerate(getattr(subnet, "cmd_group", [])):
                    yield (0, _id, gid), _net
                for core_id, cmds in enumerate(getattr(subnet, "core_commands", [])):
                    for gid, _net in enumerate(cmds.gdma_tiu_commands):
                        yield (core_id, _id, gid), _net