docstr: Test error message for invalid model names
docstr_tok: ["Test","error","message","for","invalid","model","names"]
code: def test_train_regressor_invalid(self, space, fspace):
      """Test error message for invalid model names"""
      array = flatten_numpy(to_numpy(data, space), fspace)
      with pytest.raises(ValueError) as exc:
          train_regressor("IDontExist", array)
      assert exc.match("IDontExist is not a supported regressor")
  
imports: import numpy
  import pandas
  import pytest
  from sklearn.ensemble import AdaBoostRegressor, BaggingRegressor, ExtraTreesRegressor, GradientBoostingRegressor, RandomForestRegressor
  from orion.analysis.base import average, flatten_numpy, flatten_params, ranking, to_numpy, train_regressor
  from orion.core.io.space_builder import SpaceBuilder
  from orion.core.worker.transformer import build_required_space
label_desc: Use image node_id 3 for calling the TestTrainRegressor obj's underlying member method code with example usage: obj.test_train_regressor_invalid(space, fspace) without return types