def METHOD_NAME(self, content, object_relation):
    attribute = {'description': content['description'], 'ui-priority': 1}
    if content['type'] in ['String', 'LowercaseString', 'ClassificationType',
                           'UppercaseString', 'Registry', 'JSONDict', 'JSON',
                           'TLP', 'Base64']:
        attribute['misp-attribute'] = 'text'
    elif content['type'] == 'DateTime':
        attribute['misp-attribute'] = 'datetime'
    elif content['type'] == 'ASN':
        attribute['misp-attribute'] = 'AS'
    elif content['type'] == 'FQDN':
        attribute['misp-attribute'] = 'text'
    elif content['type'] == 'Float':
        attribute['misp-attribute'] = 'float'
    elif (content['type'] in ['IPAddress', 'IPNetwork'] and
          object_relation.startswith('destination')):
        attribute['misp-attribute'] = 'ip-dst'
    elif (content['type'] in ['IPAddress', 'IPNetwork'] and
          object_relation.startswith('source')):
        attribute['misp-attribute'] = 'ip-src'
    elif content['type'] == 'Integer':
        attribute['misp-attribute'] = 'counter'
    elif content['type'] == 'Boolean':
        attribute['misp-attribute'] = 'boolean'
    elif content['type'] == 'URL':
        attribute['misp-attribute'] = 'url'
    elif content['type'] == 'Accuracy':
        attribute['misp-attribute'] = 'float'
    else:
        raise Exception('Unknown type {content["type"]}: {object_relation} - {content}')
    return attribute