def METHOD_NAME(
    cls, activity_reference_dict: Dict[str, str]
) -> ActivityReference:
    """Return the ActivityReference object from a dict.
    Args:
        activity_reference_dict: dict. Dictionary representation
            of the object.
    Returns:
        ActivityReference. The corresponding ActivityReference object.
    """
    return cls(
        activity_reference_dict['type'], activity_reference_dict['id'])