code: def find_span_type(span, page_blocks):
      block_type = "Text"
      for block in page_blocks:
          if boxes_intersect_pct(span.bbox, block.bbox):
              block_type = block.block_type
              break
      return block_type
  
imports: from collections import Counter
  from typing import List, Optional, Tuple
  from pydantic import BaseModel, field_validator
  import ftfy
  from marker.bbox import boxes_intersect_pct, multiple_boxes_intersect
  from marker.settings import settings
label_desc: Use image node_id 1 for calling a global function with example usage: find_span_type(span, page_blocks) and returns: block_type