def METHOD_NAME(data, model, time):
    """A function to load ScalarData into a model
    Arguments
    ---------
    data: ScalarData
    model: BlockData
    time: Iterable
    """
    data = data.get_data()
    t_iter = time if _is_iterable(time) else (time,)
    for cuid, val in data.items():
        var = model.find_component(cuid)
        if var is None:
            _raise_invalid_cuid(cuid, model)
        # TODO: Time points should probably use find_nearest_index
        # This will have to happen in the calling function, as data
        # doesn't have a list of time points to check.
        if var.is_indexed():
            for t in t_iter:
                var[t].set_value(val)
        else:
            var.set_value(val)