code: def transform_to_table(
      block_table, block_index, partition_order_mappings
  ):
      def _convert_to_order_index(kvs):
          for block_id, blocks in kvs:
              for _idx, _id in enumerate(blocks[block_index]):
                  yield _id, (block_id, _idx)
  
      return block_table.mapPartitions(
          _convert_to_order_index, use_previous_behavior=False
      )
  
file_path: FATE/python/fate/arch/dataframe/ops/_indexer.py
imports: import functools
  import uuid
  from ..manager import Block, DataManager
  from .._dataframe import DataFrame
label_desc: Use image node_id 1 for calling a global function with example usage: transform_to_table(block_table, block_index, partition_order_mappings) and returns: block_table