A general lookup routine is not yet part of the library. The diskpart_lookup routine is only able to do one layer of nesting. More general support may be added in the future, or it may be left to the user to determine a naming scheme to access the subpartitions.
Also, the lookup routines currently assume a sector size of 512 bytes.