def METHOD_NAME(self, value):
    """
    Raise a ValidationError if the named workflow does not exist, or
    doesn't accept parameters 'reference_date' and 'date_ranges'.
    """
    # Check that workflow exists
    try:
        if value not in self.context["workflow_storage"]:
            raise ValidationError("Workflow does not exist in this storage.")
    except KeyError:
        raise ValidationError(
            "'workflow_storage' was not provided in the context. Cannot check for workflow existence."
        )
    # Check that workflow accepts parameters that will automatically be passed when it runs
    workflow_parameter_names = {
        p.name
        for p in self.context["workflow_storage"].get_flow(value).parameters()
    }
    missing_automatic_parameters = set(self._automatic_parameters).difference(
        workflow_parameter_names
    )
    if missing_automatic_parameters:
        raise ValidationError(
            f"Workflow does not accept parameters {missing_automatic_parameters}."
        )