def METHOD_NAME(self, inputs):
    for entity in self.tax_benefit_system.entities:
        if entity.plural in inputs or entity.key in inputs:
            continue
        persons = inputs[self.tax_benefit_system.person_entity.plural]
        if len(persons) == 1:
            person_id = next(iter(persons))
            inputs[entity.key] = {
                entity.roles[0].plural or entity.roles[0].key: [person_id]
            }
        else:
            inputs[entity.plural] = {
                "{}_{}".format(entity.key, index): {
                    entity.roles[0].plural or entity.roles[0].key: [person_id]
                }
                for index, person_id in enumerate(persons.keys())
            }
    return inputs