code: def test_protected_metadata_with_json_dict():
      raw_data = {"a": 1, "b": "value"}
  
      record = BaseRecordInDB(
          metadata={"json": raw_data, "_json": raw_data}
      )
      assert record.metadata == {
          "json.a": 1,
          "json.b": "value",
          "_json": {"a": 1, "b": "value"},
      }
  
file_path: argilla/tests/unit/server/daos/models/test_records.py
imports: import warnings
  import pytest
  from argilla.server.daos.models.records import BaseRecordInDB
  from argilla.server.settings import settings
label_desc: Use image node_id 4 for calling a global function with example usage: test_protected_metadata_with_json_dict() without return types