(value)
return value
Returns a list of unique values, or the value if there is only
        one.
Returns a list of unique values, or the value if there is only
        one.
Returns a list of unique values or the value if there is only one .
def prepare_value(value):
        """
        Returns a list of unique values, or the value if there is only
        one.
        """
        if isinstance(value, list):
            if value and isinstance(value[0], list):
                set_ = {item for list_ in value for item in list_}
                return simplify_list(list(set_))
            return simplify_list(list(set(value)))
        return value
def prepare_value ( value ) : if isinstance ( value , list ) : if value and isinstance ( value [ 0 ] , list ) : set_ = { item for list_ in value for item in list_ } return simplify_list ( list ( set_ ) ) return simplify_list ( list ( set ( value ) ) ) return value