code: def test_validate_with_test_data_regression_target_filter_validations(
      self, target_filter_type, method
  ):
      test_data_regression = get_toy_regression_dataset()
  
      with pytest.raises(
          UserConfigValidationException,
          match="{0} cannot be configured with "
          "filter {1} for regression.".format(
              target_filter_type, method
          ),
      ):
          cohort_filter_regression = CohortFilter(
              method=method, arg=[2.5], column=target_filter_type
          )
          cohort_filter_regression._validate_with_test_data(
              test_data=test_data_regression,
              target_column="target",
              categorical_features=[],
              is_classification=False,
          )
  
imports: import json
  import pandas
  import pytest
  from raiutils.cohort import ClassificationOutcomes, Cohort, CohortFilter, CohortFilterMethods, cohort_filter_json_converter
  from raiutils.exceptions import UserConfigValidationException
label_desc: Use image node_id 5 for calling the TestCohortFilterDataValidations obj's underlying member method code with example usage: obj.test_validate_with_test_data_regression_target_filter_validations(target_filter_type, method) without return types