def getSectionReference(entry):
 headers = getFirstAncestorWithSectionHeader(entry)
 myHeader = findNodeJustBefore(entry, headers)
 return getSectionNumber(myHeader)

def getSectionReference ( entry ) : headers = getFirstAncestorWithSectionHeader ( entry ) myHeader = findNodeJustBefore ( entry , headers ) return getSectionNumber ( myHeader )
find the section number which contains the given node .