code: def annotate_spans(blocks: List[Page], block_types: List[BlockType]):
      for i, page in enumerate(blocks):
          page_block_types = block_types[i]
          page.add_block_types(page_block_types)
  
imports: import fitz
  from marker.cleaners.table import merge_table_blocks, create_new_tables
  from marker.debug.data import dump_bbox_debug_data
  from marker.extract_text import get_text_blocks
  from marker.cleaners.headers import filter_header_footer, filter_common_titles
  from marker.cleaners.equations import replace_equations
  from marker.ordering import order_blocks
  from marker.postprocessors.editor import edit_full_text
  from marker.segmentation import detect_document_block_types
  from marker.cleaners.code import identify_code_blocks, indent_blocks
  from marker.cleaners.bullets import replace_bullets
  from marker.markdown import merge_spans, merge_lines, get_full_text
  from marker.schema import Page, BlockType
  from typing import List, Dict, Tuple, Optional
  import re
  import magic
  from marker.settings import settings
label_desc: Use image node_id 2 for calling a global function with example usage: annotate_spans(blocks, block_types) without return types