##### SUMMARY

We should probably render something a bit nicer with invalid key/value data, especially because items2dict/dict2items are fairly unintuitive functions. Probably something that briefly explains what the purpose of key/value are so the user can get them right.

##### ISSUE TYPE
- Bug Report

##### ANSIBLE VERSION
devel

##### COMPONENT NAME

plugins.filter.core
if isinstance(data, string_types):
        
        
        
        return yaml_load(text_type(to_text(data, errors='surrogate_or_strict')))
    return data
def from_yaml_all(data):
    if isinstance(data, string_types):
        
        
        
        return yaml_load_all(text_type(to_text(data, errors='surrogate_or_strict')))
    return data
@pass_environment
def rand(environment, end, start=None, step=None, seed=None):