def METHOD_NAME(app: Sphinx) -> Dict[str, Any]:
    """Add custom configuration to sphinx app.
    Args:
        app: the Sphinx application
    Returns:
        the 2 parallel parameters set to ``True``.
    """
    app.add_directive("gallery-grid", GalleryGridDirective)
    return {
        "parallel_read_safe": True,
        "parallel_write_safe": True,
    }