def METHOD_NAME(cls, resource_id: Optional[str]) -> List["FakeExternalResource"]:
    return [
        r
        for r in _fake_resource_history
        if resource_id is None or r.id == resource_id
    ]