'Return an id to model map of all contained-type models in the id_list.'

def _contained_id_map(self, id_list):

    if (not id_list):
        return []
    component_class = self.contained_class
    query = self._session().query(component_class).filter(component_class.id.in_(id_list)).options(undefer('_metadata')).options(eagerload('dataset.actions')).options(eagerload('tags')).options(eagerload('annotations'))
    return dict(((row.id, row) for row in query.all()))
