def METHOD_NAME(
    diagnostic_file_configs: Sequence[Union[DiagnosticFileConfig, FortranFileConfig]],
) -> Mapping[str, Mapping[str, int]]:
    """Get a mapping of diagnostic file name to chunking from a sequence of diagnostic
    file configs."""
    chunks: MutableMapping = {}
    for diagnostic_file_config in diagnostic_file_configs:
        chunks[diagnostic_file_config.name] = diagnostic_file_config.chunks
    return chunks