def generate_from_yaml(pseudo_ast, language):
    '''
    generate output code in `language`

    converts yaml input to a Node-based pseudo internal tree and
    passes it to `generate

    '''
    return pseudo.generate(pseudo.loader.as_tree(pseudo_ast), language)