code: def block_surround(text, block_type):
      if block_type == "Section-header":
          if not text.startswith("#"):
              text = "\n## " + text.strip().title() + "\n"
      elif block_type == "Title":
          if not text.startswith("#"):
              text = "# " + text.strip().title() + "\n"
      elif block_type == "Table":
          text = "\n" + text + "\n"
      elif block_type == "List-item":
          pass
      elif block_type == "Code":
          text = "\n" + text + "\n"
      return text
  
file_path: pdf-to-markdown/marker/markdown.py
imports: from marker.schema import MergedLine, MergedBlock, FullyMergedBlock, Page
  import re
  from typing import List
label_desc: Use image node_id 3 for calling a global function with example usage: block_surround(text, block_type) and returns: text