def merge_dicts(*dictionaries):
    """ Merge multiple dictionaries. Last argument can be a boolean determining if the dicts can erase each other's content

    Examples
    --------
    >>> dict1 = {'label': 'string'}
    >>> dict2 = {'c': 'r', 'label': 'something'}

    >>> merge_dicts(dict1, dict2, False)
    {'label': 'string', 'c': 'r'}

    >>> merge_dicts(dict1, dict2, True)
    {'label': 'something', 'c': 'r'}

    >>> merge_dicts(dict1, dict2)
    {'label': 'string', 'c': 'r'}"""

    # Argument for force rewriting the dictionaries
    if isinstance(dictionaries[-1], bool):
        force = dictionaries[-1]
        dictionaries = dictionaries[:-1]
    else:
        force = False

    merged_dictionary = {}
    for dictionary in dictionaries:
        if force:
            merged_dictionary.update(dictionary)
        else:
            for key in dictionary.keys():
                if key not in merged_dictionary:
                    merged_dictionary[key] = dictionary[key]

    return merged_dictionary