code: def test_cohort_deserialization_error_conditions(self):
      test_dict = {}
      with pytest.raises(
          UserConfigValidationException,
          match="No name field found for cohort deserialization",
      ):
          Cohort.from_json(json.dumps(test_dict))
  
      test_dict = {"name": "Cohort New"}
      with pytest.raises(
          UserConfigValidationException,
          match="No cohort_filter_list field found for "
          "cohort deserialization",
      ):
          Cohort.from_json(json.dumps(test_dict))
  
      test_dict = {"name": "Cohort New", "cohort_filter_list": {}}
      with pytest.raises(
          UserConfigValidationException,
          match="Field cohort_filter_list not of type list "
          "for cohort deserialization",
      ):
          Cohort.from_json(json.dumps(test_dict))
  
      test_dict = {"name": "Cohort New", "cohort_filter_list": [{}]}
      with pytest.raises(
          UserConfigValidationException,
          match="No method field found for cohort filter "
          "deserialization",
      ):
          Cohort.from_json(json.dumps(test_dict))
  
      test_dict = {
          "name": "Cohort New",
          "cohort_filter_list": [{"method": "fake_method"}],
      }
      with pytest.raises(
          UserConfigValidationException,
          match="No arg field found for cohort filter deserialization",
      ):
          Cohort.from_json(json.dumps(test_dict))
  
      test_dict = {
          "name": "Cohort New",
          "cohort_filter_list": [{"method": "fake_method", "arg": []}],
      }
      with pytest.raises(
          UserConfigValidationException,
          match="No column field found for cohort filter "
          "deserialization",
      ):
          Cohort.from_json(json.dumps(test_dict))
  
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 6 for calling the TestCohort obj's underlying member method code with example usage: obj.test_cohort_deserialization_error_conditions() without return types