def METHOD_NAME(data: Any) -> Dict | Any:
    """Extract raw event from common types used in Powertools
    If event cannot be extracted, return received data as is.
    Common models:
        - Event Source Data Classes (DictWrapper)
        - Python Dataclasses
        - Pydantic Models (BaseModel)
    Parameters
    ----------
    data : Any
        Original event, a potential instance of DictWrapper/BaseModel/Dataclass
    Notes
    -----
    Why not using static type for function argument?
    DictWrapper would cause a circular import. Pydantic BaseModel could
    cause a ModuleNotFound or trigger init reflection worsening cold start.
    """
    # Short-circuit most common type first for perf
    if isinstance(data, dict):
        return data
    # Is it an Event Source Data Class?
    if getattr(data, "raw_event", None):
        return data.raw_event
    # Is it a Pydantic Model?
    if callable(getattr(data, "dict", None)):
        return data.dict()
    # Is it a Dataclass? If not return as is
    return dataclasses.asdict(data) if dataclasses.is_dataclass(data) else data