def METHOD_NAME(actor_id, record, actor_identifiers, actor_names):
    if 'fips' in record and record['fips'] != '':
        actor_identifiers.append({
            'actor_id': actor_id,
            'identifier': record['fips'],
            'namespace': 'FIPS',
            'datasource_id': DATASOURCE['datasource_id']
        })
    if 'reference' in record:
        if 'geonames' in record['reference'] and record['reference']['geonames'] != '' and record['reference']['geonames'] != None:
            actor_identifiers.append({
                'actor_id': actor_id,
                'identifier': record['reference']['geonames'],
                'namespace': 'geonames',
                'datasource_id': DATASOURCE['datasource_id']
            })
        if 'openstreetmap' in record['reference'] and record['reference']['openstreetmap'] != '' and record['reference']['openstreetmap'] != None:
            actor_identifiers.append({
                'actor_id': actor_id,
                'identifier': record['reference']['openstreetmap'],
                'namespace': 'openstreetmap',
                'datasource_id': DATASOURCE['datasource_id']
            })
    if 'names' in record:
        for language, name in record['names'].items():
            if (name != ''):
                actor_names.append({
                    'actor_id': actor_id,
                    'name': name,
                    'language': language,
                    'datasource_id': DATASOURCE['datasource_id']
                })