def METHOD_NAME(elastic_record):
    if 'inner_hits' in elastic_record:
        for name, inner_hits in elastic_record['inner_hits'].items():
            yield name, StorageRecords.build_from_elastic(inner_hits)