def METHOD_NAME(app: FastAPI) -> MountedVolumes:
    settings: ApplicationSettings = app.state.settings
    app.state.mounted_volumes = MountedVolumes(
        run_id=settings.DY_SIDECAR_RUN_ID,
        node_id=settings.DY_SIDECAR_NODE_ID,
        inputs_path=settings.DY_SIDECAR_PATH_INPUTS,
        outputs_path=settings.DY_SIDECAR_PATH_OUTPUTS,
        state_paths=settings.DY_SIDECAR_STATE_PATHS,
        state_exclude=settings.DY_SIDECAR_STATE_EXCLUDE,
        compose_namespace=settings.DYNAMIC_SIDECAR_COMPOSE_NAMESPACE,
        dy_volumes=settings.DYNAMIC_SIDECAR_DY_VOLUMES_MOUNT_DIR,
    )
    return app.state.mounted_volumes