def METHOD_NAME(code):
    '''Utility to create an LFRic Algorithm PSyIR tree from Fortran
    code.
    :param str code: Fortran algorithm code encoded as a string.
    :returns: LFRic Algorithm PSyIR tree representing the Fortran \
        code.
    :rtype: :py:class:`psyclone.psyir.nodes.Node`
    '''
    fortran_reader = FortranReader()
    psyir = fortran_reader.psyir_from_source(code)
    alg_trans = LFRicAlgTrans()
    alg_trans.apply(psyir)
    return psyir