<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read(self, entity=None, attrs=None, ignore=None, params=None):
 """Ignore the template inputs when initially reading the job template. Look up each TemplateInput entity separately and afterwords add them to the JobTemplate entity."""

        if attrs is None:
            attrs = self.read_json(params=params)
        if ignore is None:
            ignore = set()
        ignore.add('template_inputs')
        entity = super(JobTemplate, self).read(entity=entity, attrs=attrs,
                                               ignore=ignore, params=params)
        referenced_entities = [
            TemplateInput(entity._server_config, id=entity_id,
                          template=JobTemplate(entity._server_config,
                                               id=entity.id))
            for entity_id
            in _get_entity_ids('template_inputs', attrs)
        ]
        setattr(entity, 'template_inputs', referenced_entities)
        return entity