"""Auto-generated stub for module: common."""
from typing import Any

# Functions
def accuracy(output: Any.Any, target: Any.Any, topk: Any[int] = (1,)) -> list[Any.Any]:
    """
    Compute top-k accuracy values for logits and labels.
    
        Returns the same shape contract as legacy BYOM code: a list of scalar tensors
        where each value is in [0, 1].
    """
    ...
def calculate_metrics_for_all_classes(predictions: Any.Any, target: Any.Any) -> tuple[float, float, float]:
    """
    Compute macro precision/recall/F1 from predicted and true class indices.
    """
    ...
