Identify files in APFS using inode numbers

How to resolve an inode number to a path and filename, and how to go the other way from a file to an inode number. How you can tell which files are on System and Data volumes.