Implement train_one_step(model, x, y, lr) that performs exactly one step of stochastic gradient descent on model using mean-squared-error loss. Return the loss value (computed before the parameter update) as a Python float.
Use torch.optim.SGD as the optimizer, constructed fresh inside the function over model.parameters() with the given lr. Use MSE as the loss.
float with a method whose name suggests "scalar item".