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: Returns a serialized JSON string for the Cohort object.
  
  :return: The JSON string for the cohort.
  :rtype: str
docstr_tok: ["Returns","a","serialized","JSON","string","for","the","Cohort","object",".",":","return",":","The","JSON","string","for","the","cohort",".",":","rtype",":","str"]
code: def to_json(self):
      """Returns a serialized JSON string for the Cohort object.
  
      :return: The JSON string for the cohort.
      :rtype: str
      """
      return json.dumps(self, default=Cohort._cohort_serializer)
  
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 4 for calling the Cohort obj's underlying member method code with example usage: obj.to_json() and returns: json