def _outputs_contain_output_type(restricted_red_batch_outputs, output_type):
    """
    Returns whether the given restricted red batch outputs contain an output with the given output type.
    This function is used to determine, if this batch output contain stdout or stderr specifications.

    :param restricted_red_batch_outputs: The restricted red batch outputs to search in. The keys are the output keys of
                                         the converted red file and the values are the output values corresponding to
                                         this key.
    :type restricted_red_batch_outputs: dict
    :param output_type: The OutputType to search given as string
    :type output_type: str
    :return: True, if an output of type output_type could be found, otherwise False
    """
    for output_value in restricted_red_batch_outputs.values():
        if output_value.get('class') == output_type:
            return True
    return False
