Thanks, that completes the set!
All 3 of these work without me adding any extra import statements to the plugin.
How do I know when an import is required or not? Do I just try first without and see if it fails?
For example, in the same plugin I have "from calibre.ebooks.metadata.meta import get_metadata" and this one is necessary for use of get_metadata.