def METHOD_NAME(self, state: Any, ts: Any) -> Any:
    """
    state must be desired or reported stype dict object
    replaces primitive type with {"timestamp": ts} in dict
    """
    if state is None:
        return None
    def _f(elem: Any, ts: Any) -> Any:
        if isinstance(elem, dict):
            return {_: _f(elem[_], ts) for _ in elem.keys()}
        if isinstance(elem, list):
            return [_f(_, ts) for _ in elem]
        return {"timestamp": ts}
    return _f(state, ts)