def verbose_name(_id, preferred_type=None):
    """
    If the name is known, print the name and a useful numeric ID (which hints
    at type).  Otherwise, just print the numeric ID.
    """
    if _id.has_name():
        return u'{} ({})'.format(_id, _id.numeric_str(preferred_type))
    else:
        return u'{}'.format(_id.numeric_str(preferred_type))
