def METHOD_NAME(
    self, object_id: str, fields: List[str] = None, error: str = "raise"
) -> Dict:
    if error not in ("raise", "ignore"):  # pragma: no cover
        raise ValueError("error must be raise or ignore")
    try:
        meta = self._store[object_id]
        if fields is None:
            fields = _get_meta_fields(type(meta))
        return {k: getattr(meta, k) for k in fields}
    except KeyError:
        if error == "raise":
            raise
        else:
            return