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

# 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.
    
        Args:
            output: Classification logits tensor with shape ``[N, C]``.
            target: Target label tensor with ``N`` elements.
            topk: Sequence of k-values for top-k accuracy calculation.
    
        Returns:
            List of scalar tensors in ``[0, 1]`` matching requested ``topk`` order.
    """
    ...
def calculate_metrics_for_all_classes(predictions: Any.Any, target: Any.Any) -> tuple[float, float, float]:
    """
    Compute macro precision, recall, and F1 from class indices.
    
        Args:
            predictions: Predicted class index tensor.
            target: Ground-truth class index tensor.
    
        Returns:
            Tuple ``(macro_precision, macro_recall, macro_f1)``.
    """
    ...
