Solve an ODE in Sagemath where the the value of the function and the value of its derivative is known at different points
I am new to SageMath (migrating from Mathematica), and I am having trouble solving differential equations where the value of the function and the value of its derivatives are available at different points. As for example,
$$y(x)+y''(x)=x^{2}$$
where, $y(1)=1$ and $y'(2)=1$.
In SageMath, it seems that the boundary conditions needs to be given in the form $[x_0,y_0,x_1,y_1]$ or $[x_0,y_0,{y_0}']$, implying that the value of the function and its derivative needs to be specified at the same point.
Any help on how to solve such equations would be highly appreciated. Thank you!
Kindly note, I am not interested in the actual solution to this problem, but in the Sage implementation of such problems.