import torch
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional, Union
@dataclass
 class DataCollatorCTCWithPadding:
     processor: AutoProcessor
     padding: Union[bool, str] = "longest"