def format_gpus(connection, node_id: int):
    """
    Returns GPUs formatted in Dash friendly manner.
    :return: list of Dicts
    """
    gpus = connection.get_gpus(node_id)
    res = []
    for gpu in gpus:
        res.append({'label': f'{gpu}', 'value': gpu})
    return res