<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def line(h1: Histogram1D, **kwargs) -> dict: """Line plot of 1D histogram values. Points are horizontally placed in bin centers. Parameters h1 : physt.histogram1d.Histogram1D Dimensionality of histogram for which it is applicable """


    lw = kwargs.pop("lw", DEFAULT_STROKE_WIDTH)

    mark_template = [{
        "type": "line",
        "encode": {
            "enter": {
                "x": {"scale": "xscale", "field": "x"},
                "y": {"scale": "yscale", "field": "y"},
                "stroke": {"scale": "series", "field": "c"},
                "strokeWidth": {"value": lw}
            }
        },
        "from": {"data": "series"},
    }]
    vega = _scatter_or_line(h1, mark_template=mark_template, kwargs=kwargs)
    return vega