class_docstr: Defines the cohort filter.
  :param method: Cohort filter method from one of CohortFilterMethods.
  :type method: str
  :param arg: List of values to be used by the cohort filter.
  :type arg: list
  :param column: The column name from the dataset on which the filter
                 will be applied.
  :type column: str
class_docstr_tok: ["Defines","the","cohort","filter",".",":","param","method",":","Cohort","filter","method","from","one","of","CohortFilterMethods",".",":","type","method",":","str",":","param","arg",":","List","of","values","to","be","used","by","the","cohort","filter",".",":","type","arg",":","list",":","param","column",":","The","column","name","from","the","dataset","on","which","the","filter","will","be","applied",".",":","type","column",":","str"]
docstr: Defines the cohort filter.
  :param method: Cohort filter method from one of CohortFilterMethods.
  :type method: str
  :param arg: List of values to be used by the cohort filter.
  :type arg: list
  :param column: The column name from the dataset on which the filter
                 will be applied.
  :type column: str
docstr_tok: ["Defines","the","cohort","filter",".",":","param","method",":","Cohort","filter","method","from","one","of","CohortFilterMethods",".",":","type","method",":","str",":","param","arg",":","List","of","values","to","be","used","by","the","cohort","filter",".",":","type","arg",":","list",":","param","column",":","The","column","name","from","the","dataset","on","which","the","filter","will","be","applied",".",":","type","column",":","str"]
code: def __init__(self, method: str, arg: List[Any], column: str):
      """Defines the cohort filter.
      :param method: Cohort filter method from one of CohortFilterMethods.
      :type method: str
      :param arg: List of values to be used by the cohort filter.
      :type arg: list
      :param column: The column name from the dataset on which the filter
                     will be applied.
      :type column: str
      """
      self._validate_cohort_filter_parameters(
          method=method, arg=arg, column=column
      )
  
      self.method = method
      self.arg = arg
      self.column = column
  
imports: import json
  from typing import Any, List, Optional
  import numpy
  import pandas
  from raiutils.exceptions import UserConfigValidationException
  from .constants import ClassificationOutcomes, CohortFilterMethods
label_desc: Use image node_id 1 to create a new CohortFilter object  with example: obj = CohortFilter(method, arg, column)