code: def _find_unused_partition() -> RootPartitions:
      
      which = subprocess.check_output(['ot-unused-partition']).strip()
      return {b'2': RootPartitions.TWO,
              b'3': RootPartitions.THREE}[which]
docs: Find the currently-unused root partition to write to