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: Method to read a JSON dictionary and return a Cohort object.
  
  :param json_dict: JSON dictionary containing cohort data.
  :type: dict[str, str]
  :return: The Cohort object.
  :rtype: Cohort
docstr_tok: ["Method","to","read","a","JSON","dictionary","and","return","a","Cohort","object",".",":","param","json_dict",":","JSON","dictionary","containing","cohort","data",".",":","type",":","dict","[","str",",","str","]",":","return",":","The","Cohort","object",".",":","rtype",":","Cohort"]
code: def _get_cohort_object(json_dict):
      """Method to read a JSON dictionary and return a Cohort object.
  
      :param json_dict: JSON dictionary containing cohort data.
      :type: dict[str, str]
      :return: The Cohort object.
      :rtype: Cohort
      """
      cohort_fields = ["name", "cohort_filter_list"]
      for cohort_field in cohort_fields:
          if cohort_field not in json_dict:
              raise UserConfigValidationException(
                  "No {0} field found for cohort deserialization".format(
                      cohort_field
                  )
              )
  
      if not isinstance(json_dict["cohort_filter_list"], list):
          raise UserConfigValidationException(
              "Field cohort_filter_list not of type list for "
              "cohort deserialization"
          )
  
      deserialized_cohort = Cohort(json_dict["name"])
      for serialized_cohort_filter in json_dict["cohort_filter_list"]:
          cohort_filter_fields = ["method", "arg", "column"]
          for cohort_filter_field in cohort_filter_fields:
              if cohort_filter_field not in serialized_cohort_filter:
                  raise UserConfigValidationException(
                      "No {0} field found for cohort filter "
                      "deserialization".format(cohort_filter_field)
                  )
  
          cohort_filter = CohortFilter(
              method=serialized_cohort_filter["method"],
              arg=serialized_cohort_filter["arg"],
              column=serialized_cohort_filter["column"],
          )
          deserialized_cohort.add_cohort_filter(
              cohort_filter=cohort_filter
          )
      return deserialized_cohort
  
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 5 for calling the Cohort obj's underlying member method code with example usage: obj._get_cohort_object(json_dict) and returns: deserialized_cohort