(tree, from_='name')
return None
Get the name (token) of the AST node.
    :param tree ast:
    :rtype: str|None
Get the name (token) of the AST node.
    :param tree ast:
    :rtype: str|None
Get the name ( token ) of the AST node . : param tree ast : : rtype : str|None
def get_name(tree, from_='name'):
    """
    Get the name (token) of the AST node.
    :param tree ast:
    :rtype: str|None
    """
    # return tree['name']['name']
    if 'name' in tree and isinstance(tree['name'], str):
        return tree['name']

    if 'parts' in tree:
        return djoin(tree['parts'])

    if from_ in tree:
        return get_name(tree[from_])

    return None
def get_name ( tree , from_ = 'name' ) : # return tree['name']['name'] if 'name' in tree and isinstance ( tree [ 'name' ] , str ) : return tree [ 'name' ] if 'parts' in tree : return djoin ( tree [ 'parts' ] ) if from_ in tree : return get_name ( tree [ from_ ] ) return None