def METHOD_NAME(ks, dm=None, h1e=None, vhf=None):
    r'''Electronic part of DKS energy.
    Note this function has side effects which cause mf.scf_summary updated.
    Args:
        ks : an instance of DFT class
        dm : 2D ndarray
            one-partical density matrix
        h1e : 2D ndarray
            Core hamiltonian
    Returns:
        DKS electronic energy and the 2-electron contribution
    '''
    e1, e2 = rks.METHOD_NAME(ks, dm, h1e, vhf)
    if not ks.with_ssss and ks.ssss_approx == 'Visscher':
        e2 += dhf._vischer_ssss_correction(ks, dm)
        ks.scf_summary['e2'] = e2
    return e1, e2