def _verify_parsed_docstring(parameters, param_dict):
    """
    Verification of consistency of the parameters extracted from docstring and
    dictionary of parameters (probably default parameters). There must be one-to-one
    match between the entries of the list of the parameters extracted from the docstring
    and the parameter dictionary.

    Parameters
    ----------

    parameters : list(tuple)
        The list of ``(parameter_name, parameter_description)`` tuples.
        Descriptions are not analyzed by this function.

    param_dict : dict
        The dictionary of parameters: key - parameter name, value - default value.
        Values are not analyized by this function.

    Returns
    -------

    Raises exception if there is mismatch between the parameter sets.
    """
    pd = param_dict.copy()
    missing_param_list = []
    for p_name, _ in parameters:
        if p_name in pd:
            del pd[p_name]
        else:
            missing_param_list.append(p_name)
    extra_param_list = pd.keys()
    err_msg_list = []
    if missing_param_list:
        err_msg_list.append(
            f'parameters that are in docstring, but not in the dictionary {missing_param_list}'
            )
    if extra_param_list:
        err_msg_list.append(
            f'dictionary parameters that are not found in the docstring: {extra_param_list}'
            )
    if err_msg_list:
        err_msg = (
            'Parsed parameter verification failed: parameter set is inconsistent:\n'
            )
        err_msg += ', '.join(err_msg_list)
        assert False, err_msg
