code: def test_cohort_configuration_validations(self):
      with pytest.raises(
          UserConfigValidationException,
          match="Got unexpected type <class 'int'> for cohort name. "
          "Expected string type.",
      ):
          Cohort(name=1)
  
      with pytest.raises(
          UserConfigValidationException,
          match="Got unexpected type <class 'list'> for cohort filter. "
          "Expected CohortFilter type",
      ):
          cohort = Cohort(name="Cohort New")
          cohort.add_cohort_filter(cohort_filter=[])
  
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 1 for calling the TestCohort obj's underlying member method code with example usage: obj.test_cohort_configuration_validations() without return types