Return the unit name to the unit 'unit_id'

def get_unit_name(unit_id):
    """
    Return the unit name to the unit 'unit_id'
    """
    attribute = 'cn'
    response = LDAP_search(
        pattern_search='(uniqueIdentifier={})'.format(unit_id),
        attribute=attribute
    )
    try:
        unit_name = get_attribute(response, attribute)
    except Exception:
        raise EpflLdapException("The unit with id '{}' was not found".format(unit_id))

    return unit_name