code: def get_heading_level(heading: Text) -> int:
      return len(heading.split(" ", 1)[0])
  
file_path: rasa/tests/docs/test_docs_header_hierarchy.py
imports: from pathlib import Path
  from typing import List, Text, Tuple
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: get_heading_level(heading) and returns: len