def METHOD_NAME(langTree, currentSection: str, fieldName: str, key: str, extract=False):
    temp = key.split("/")
    loc = temp[0]
    k = ""
    if len(temp) > 1:
        k = temp[1]
    sections = loc.split(":")
    # folder, folder:section or folder:section:subkey
    folder = sections[0]
    section = currentSection
    subkey = None
    if len(sections) > 1:
        section = sections[1]
    if len(sections) > 2:
        subkey = sections[2]
    if k == '':
        k = fieldName
    value = ""
    if folder in langTree and section in langTree[folder] and k in langTree[folder][section]:
        value = langTree[folder][section][k]
        if extract:
            s = langTree[folder][section]
            del s[k]
            langTree[folder][section] = s
    if subkey is not None and subkey in value:
        value = value[subkey]
    return (langTree, folder, value)