code: def _merge_bool_blocks(
      block_table, data_manager: DataManager, block_indexes
  ):
      """
      all blocks are bool type, they should be merge into one blocks
      """
      dst_data_manager = data_manager.duplicate()
      to_promote_types = []
      for bid in block_indexes:
          to_promote_types.append((bid, BlockType.bool))
  
      dst_data_manager.promote_types(to_promote_types)
      dst_block_table, dst_data_manager = compress_blocks(
          block_table, dst_data_manager
      )
  
      return dst_block_table, dst_data_manager
  
file_path: FATE/python/fate/arch/dataframe/ops/_cmp.py
imports: import numpy
  import pandas
  import torch
  from .._dataframe import DataFrame
  from .._dataframe import DataManager
  from ..manager import BlockType
  from .utils.operators import binary_operate
  from .utils.series_align import series_to_ndarray
  from ._compress_block import compress_blocks
label_desc: Use image node_id 2 for calling a global function with example usage: _merge_bool_blocks(block_table, data_manager, block_indexes) and returns: dst_block_table,  dst_data_manager