The type of `#r_content.metadata` is `dict() | list()`. Are we sure this function only gets called with Dict type data?