def name_options(options, base_name):
    """Construct a dictionary that has a name entry if options has name_postfix"""
    postfix = options.get("name_postfix")
    if postfix is not None:
        return { "name": base_name + str(postfix) }
    return {}