pub fn linear_spaces( start: PyExpr, end: PyExpr, num_samples: PyExpr, closed: Wrap<ClosedInterval>, as_array: bool, ) -> PyResult<PyExpr>