code: def get_tutorial_title(filepath: Path) -> str:
      """
      Lookup the title of the notebook
      """
      # The first h1 header
      nb = nbformat.read(filepath.open(), as_version=4)
      markdown_lines = itertools.chain(
          *(
              c.source.splitlines()
              for c in nb.cells
              if c.cell_type == "markdown"
          )
      )
      for line in markdown_lines:
          if line.startswith("# "):
              return line.strip("# ")
      raise ValueError(f"No title found for tutorial: {filepath.name}")
  
imports: import itertools
  from pathlib import Path
  import nbformat
  from quartodoc.pandoc.blocks import BulletList
  from quartodoc.pandoc.inlines import Link
label_desc: Use image node_id 1 for calling a global function with example usage: get_tutorial_title(filepath) and returns: line