function predict_safely(x, model, training_range):
   if x < training_range.min or x > training_range.max:

      report an unsupported case # extrapolating beyond what the model has
 seen
   return model.predict(x)
