# Copyright (c) Alibaba, Inc. and its affiliates. from abc import ABC, abstractmethod from typing import Any, Dict class Preprocessor(ABC): def __init__(self, *args, **kwargs): pass @abstractmethod def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]: pass