def METHOD_NAME(instance):
    """
    Return the `ContentType` ID for the given object.
    """
    content_type = ContentType.objects.get_for_model(instance)
    if content_type:
        return content_type.pk
    else:
        return None