code: def test_cohort_serialization_deserialization_include_exclude_methods(
      self, method
  ):
      cohort_filter_str = CohortFilter(
          method=method, arg=["val1", "val2", "val3"], column="age"
      )
      cohort_str = Cohort(name="Cohort New Str")
      cohort_str.add_cohort_filter(cohort_filter_str)
  
      json_str = cohort_str.to_json()
      assert method in json_str
      assert "val1" in json_str
      assert "val2" in json_str
      assert "val3" in json_str
      assert "age" in json_str
      cohort_str_new = Cohort.from_json(json_str)
      assert cohort_str == cohort_str_new
  
      cohort_filter_int = CohortFilter(
          method=method, arg=[1, 2, 3], column="age"
      )
      cohort_int = Cohort(name="Cohort New Int")
      cohort_int.add_cohort_filter(cohort_filter_int)
  
      json_str = cohort_int.to_json()
      assert method in json_str
      assert "1" in json_str
      assert "2" in json_str
      assert "3" in json_str
      assert "age" in json_str
  
      cohort_int_new = Cohort.from_json(json_str)
      assert cohort_int == cohort_int_new
  
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 TestCohort obj's underlying member method code with example usage: obj.test_cohort_serialization_deserialization_include_exclude_methods(method) without return types