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: Validate the input values for 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
  
  The following validations can be performed on the cohort filter:-
  
  1. Verify the correct types for method (expected string), column
     (expected string) and arg (expected list).
  2. The method value should be one of the filter string from
     CohortFilterMethods.ALL.
  3. The arg shouldn't be an empty list.
  4. For all cohort filter methods in
     CohortFilterMethods.SINGLE_VALUE_METHODS, the value in the arg
     should be integer or float and there should be only one value
     in arg.
  5. For cohort filter method CohortFilterMethods.METHOD_RANGE,
     the values in the arg should be integer or float and there
     should be only two values in arg.
docstr_tok: ["Validate","the","input","values","for","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","The","following","validations","can","be","performed","on","the","cohort","filter",":","-","1",".","Verify","the","correct","types","for","method","(","expected","string",")",",","column","(","expected","string",")","and","arg","(","expected","list",")",".","2",".","The","method","value","should","be","one","of","the","filter","string","from","CohortFilterMethods.ALL",".","3",".","The","arg","should","n't","be","an","empty","list",".","4",".","For","all","cohort","filter","methods","in","CohortFilterMethods.SINGLE_VALUE_METHODS",",","the","value","in","the","arg","should","be","integer","or","float","and","there","should","be","only","one","value","in","arg",".","5",".","For","cohort","filter","method","CohortFilterMethods.METHOD_RANGE",",","the","values","in","the","arg","should","be","integer","or","float","and","there","should","be","only","two","values","in","arg","."]
code: def _validate_cohort_filter_parameters(
      self, method: str, arg: List[Any], column: str
  ):
      """Validate the input values for 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
  
      The following validations can be performed on the cohort filter:-
  
      1. Verify the correct types for method (expected string), column
         (expected string) and arg (expected list).
      2. The method value should be one of the filter string from
         CohortFilterMethods.ALL.
      3. The arg shouldn't be an empty list.
      4. For all cohort filter methods in
         CohortFilterMethods.SINGLE_VALUE_METHODS, the value in the arg
         should be integer or float and there should be only one value
         in arg.
      5. For cohort filter method CohortFilterMethods.METHOD_RANGE,
         the values in the arg should be integer or float and there
         should be only two values in arg.
      """
      if not isinstance(method, str):
          raise UserConfigValidationException(
              "Got unexpected type {0} for method. "
              "Expected string type.".format(type(method))
          )
      if method not in CohortFilterMethods.ALL:
          raise UserConfigValidationException(
              "Got unexpected value {0} for method. "
              "Expected either of {1}.".format(
                  method, " or ".join(CohortFilterMethods.ALL)
              )
          )
      if not isinstance(column, str):
          raise UserConfigValidationException(
              "Got unexpected type {0} for column. "
              "Expected string type.".format(type(column))
          )
      if not isinstance(arg, list):
          raise UserConfigValidationException(
              "Got unexpected type {0} for arg. "
              "Expected list type.".format(type(arg))
          )
      if len(arg) == 0:
          raise UserConfigValidationException(
              "Empty list supplied for arg."
          )
  
      if method in CohortFilterMethods.SINGLE_VALUE_METHODS:
          if len(arg) != 1:
              raise UserConfigValidationException(
                  "Expected a single value in arg "
                  "for cohort methods {0}.".format(
                      " or ".join(
                          CohortFilterMethods.SINGLE_VALUE_METHODS
                      )
                  )
              )
          if not isinstance(arg[0], int) and not isinstance(
              arg[0], float
          ):
              raise UserConfigValidationException(
                  "Expected int or float type for "
                  "arg with cohort methods {0}.".format(
                      " or ".join(
                          CohortFilterMethods.SINGLE_VALUE_METHODS
                      )
                  )
              )
  
      if method == CohortFilterMethods.METHOD_RANGE:
          if len(arg) != 2:
              raise UserConfigValidationException(
                  "Expected two entries in arg for "
                  "cohort method {0}.".format(
                      CohortFilterMethods.METHOD_RANGE
                  )
              )
          if not all(
              isinstance(entry, int) for entry in arg
          ) and not all(isinstance(entry, float) for entry in arg):
              raise UserConfigValidationException(
                  "Expected int or float type for arg "
                  "with cohort method {0}.".format(
                      CohortFilterMethods.METHOD_RANGE
                  )
              )
  
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 3 for calling the CohortFilter obj's underlying member method code with example usage: obj._validate_cohort_filter_parameters(method, arg, column) without return types