<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_extended_source_fluxes(self, id, j2000_ra, j2000_dec, energies):
 """ Get the flux of the id-th extended sources at the given position at the given energies :param id: id of the source :param j2000_ra: R.A. where the flux is desired :param j2000_dec: Dec. where the flux is desired :param energies: energies at which the flux is desired :return: flux array """


        return self._extended_sources.values()[id](j2000_ra, j2000_dec, energies)