def inputchoices(parents, params):
    """Convert the parents and params into selection lists."""
    parentnames = [(key, parent.name) if parent else (key, None) for key, parent in parents.items()]
    return [(key, f"{key}: {val}") for key, val in parentnames + list(params.items())]