code: def test_partial_record_update(mocked_client, gutenberg_spacy_ner):
      expected_id = "00c27206-da48-4fc3-aab7-4b730628f8ac"
  
      record = record_data_by_id(
          dataset=gutenberg_spacy_ner,
          record_id=expected_id,
      )
      assert not record.get("metadata")
  
      metadata_update = {"new_key": "new_label"}
      record = active_api().datasets.update_record(
          name=gutenberg_spacy_ner,
          record_id=expected_id,
          metadata=metadata_update,
      )
      assert record["id"] == expected_id
  
      record = record_data_by_id(
          dataset=gutenberg_spacy_ner,
          record_id=expected_id,
      )
      assert record["metadata"] == metadata_update
  
      new_metadata_update = {
          "other": "field",
      }
      active_api().datasets.update_record(
          name=gutenberg_spacy_ner,
          record_id=expected_id,
          metadata=new_metadata_update,
      )
      record = record_data_by_id(
          dataset=gutenberg_spacy_ner,
          record_id=expected_id,
      )
      assert record["metadata"] == {
          **metadata_update,
          **new_metadata_update,
      }
  
imports: import pytest
  from argilla.client.sdk.commons.errors import NotFoundApiError
  from argilla.client.singleton import active_api, init
  from argilla.server.models import User
label_desc: Use image node_id 2 for calling a global function with example usage: test_partial_record_update(mocked_client, gutenberg_spacy_ner) without return types