def METHOD_NAME(data, kwargs=None):
    """
    Create a copy of a given value, by calling `encode` and `decode` on it.
    If `kwargs` is provided, it's possible to overwrite nested values.
    """
    encoded = encode(data)
    if kwargs:
        encoded.update(kwargs)
    return decode(encoded)