in function_app/src/components/doc_intelligence.py [0:0]
def get_heading_hashes(section_heirarchy: Optional[tuple[int]]) -> str:
"""
Gets the heading hashes for a section heirarchy.
:param section_heirarchy: Tuple of section IDs representing the section
heirarchy - For example, (1,1,4).
:type section_heirarchy: tuple[int], optional
:return: A string containing the heading hashes.
:rtype: str
"""
if section_heirarchy:
return "#" * len(section_heirarchy)
return ""