def _value_to_kwargs(self, value: Union[(DataArray, List, Tuple, Mapping)], keys: Optional[Union[(List, Tuple)]]=None):
    if isinstance(value, DataArray.__args__):
        return dict(value=value)
    if isinstance(value, (list, tuple)):
        return dict(zip(keys, value))
    elif isinstance(value, Mapping):
        return value
    else:
        raise TypeError('Invalid type for value "{}"'.format(type(value)))
def _value_to_kwargs(self, value: Union[(DataArray, List, Tuple, Mapping)], keys: Optional[Union[(List, Tuple)]]=None):
    if isinstance(value, DataArray.__args__):
        return dict(value=value)
    if isinstance(value, (list, tuple)):
        return dict(zip(keys, value))
    elif isinstance(value, Mapping):
        return value
    else:
        raise TypeError('Invalid type for value "{}"'.format(type(value)))