code: def _convert_raw_table_to_df(ctx, table, data_manager):
      from ..ops._indexer import get_partition_order_by_raw_table
      from ..ops._dimension_scaling import to_blocks
  
      partition_order_mapping = get_partition_order_by_raw_table(
          table, data_manager.block_row_size
      )
      to_block_func = functools.partial(
          to_blocks,
          dm=data_manager,
          partition_mappings=partition_order_mapping,
      )
      block_table = table.mapPartitions(
          to_block_func, use_previous_behavior=False
      )
  
      return DataFrame(
          ctx, block_table, partition_order_mapping, data_manager
      )
  
file_path: FATE/python/fate/arch/dataframe/utils/_sample.py
imports: import functools
  from typing import Union, Dict, Any
  from sklearn.utils import resample
  from ._id_generator import generate_sample_id, generate_sample_id_prefix
  from .._dataframe import DataFrame
label_desc: Use image node_id 6 for calling a global function with example usage: _convert_raw_table_to_df(ctx, table, data_manager) and returns: DataFrame