tfp.experimental.lazybones.utils.get_leaves

Returns all childless descendants ("leaves") of (iterable) ancestors.