def METHOD_NAME(self, value):
    """Test that __setitem__ can replace or insert a new element
    into a DatasetDict."""
    ds = DatasetDict(value)
    ds["a"] = 2
    value["a"] = 2
    assert ds == value