code: def test_cohort_filter_serialization_include_exclude_methods(
      self, method
  ):
      cohort_filter_str = CohortFilter(
          method=method, arg=["val1", "val2", "val3"], column="age"
      )
      json_str = json.dumps(
          cohort_filter_str, default=cohort_filter_json_converter
      )
      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_filter_int = CohortFilter(
          method=method, arg=[1, 2, 3], column="age"
      )
      json_str = json.dumps(
          cohort_filter_int, default=cohort_filter_json_converter
      )
      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
  
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 10 for calling the TestCohortFilter obj's underlying member method code with example usage: obj.test_cohort_filter_serialization_include_exclude_methods(method) without return types