Get the name for a model.

    :returns str: The model's name.  If the id has no associated name, then "id = {ID} (no name)" is returned.

def get_name(model_id):
    """
    Get the name for a model.

    :returns str: The model's name.  If the id has no associated name, then "id = {ID} (no name)" is returned.
    """
    name = _names.get(model_id)
    if name is None:
        name = 'id = %s (no name)' % str(model_id)
    return name