class_docstr: Defines the cohort which will be injected from SDK into the Dashboard.
  :param name: Name of the cohort.
  :type name: str
class_docstr_tok: ["Defines","the","cohort","which","will","be","injected","from","SDK","into","the","Dashboard",".",":","param","name",":","Name","of","the","cohort",".",":","type","name",":","str"]
docstr: Add a cohort filter into the cohort.
  :param cohort_filter: Cohort filter defined by CohortFilter class.
  :type: CohortFilter
docstr_tok: ["Add","a","cohort","filter","into","the","cohort",".",":","param","cohort_filter",":","Cohort","filter","defined","by","CohortFilter","class",".",":","type",":","CohortFilter"]
code: def add_cohort_filter(self, cohort_filter: CohortFilter):
      """Add a cohort filter into the cohort.
      :param cohort_filter: Cohort filter defined by CohortFilter class.
      :type: CohortFilter
      """
      if not isinstance(cohort_filter, CohortFilter):
          raise UserConfigValidationException(
              "Got unexpected type {0} for cohort filter. "
              "Expected CohortFilter type.".format(type(cohort_filter))
          )
      if self.cohort_filter_list is None:
          self.cohort_filter_list = [cohort_filter]
      else:
          self.cohort_filter_list.append(cohort_filter)
  
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 7 for calling the Cohort obj's underlying member method code with example usage: obj.add_cohort_filter(cohort_filter) without return types