def METHOD_NAME(portal_type):
    """Disable labels for all objects of the given type
    :param portal_type: The portal_type to disable labeling
    """
    klass = get_klass(portal_type)
    try:
        classDoesNotImplement(klass, ICanHaveLabels)
    except AttributeError:
        # '_ImmutableDeclaration' object has no attribute 'declared'
        logger.error("Type '{}' does not support labels".format(portal_type))
    # disable behavior
    if api.is_dx_type(portal_type):
        api.disable_behavior(portal_type, BEHAVIOR_ID)