"""Utility functions shared across backend modules.""" from typing import Dict, Any, Tuple