def METHOD_NAME(
    self, configuration: Optional[ExpectationConfiguration] = None
) -> None:
    super().METHOD_NAME(configuration)
    configuration = configuration or self.configuration
    value = configuration["kwargs"].get("value")
    threshold = configuration["kwargs"].get("threshold")
    try:
        assert value is not None, "'value' must be specified"
        assert (isinstance(threshold, (int, float)) and 0 < threshold <= 1) or (
            isinstance(threshold, list)
            and all(isinstance(x, (int, float)) for x in threshold)
            and all(0 < x <= 1 for x in threshold)
            and 0 < sum(threshold) <= 1
        ), "'threshold' must be 1, a float between 0 and 1, or a list of floats whose sum is between 0 and 1"
        if isinstance(threshold, list):
            assert isinstance(value, list) and len(value) == len(
                threshold
            ), "'value' and 'threshold' must contain the same number of arguments"
    except AssertionError as e:
        raise InvalidExpectationConfigurationError(str(e))