code: def test_deepcopies_metadata(
      self, create_artifact: Callable[..., wandb.Artifact]
  ):
      orig_metadata = {"foo": ["original"]}
      artifact = create_artifact(metadata=orig_metadata)
  
      # ensure `artifact.metadata` isn't just a reference to the argument
      assert artifact.metadata is not orig_metadata
      orig_metadata["bar"] = "modifying the top-level value"
      assert "bar" not in artifact.metadata
  
      # ensure that any mutable sub-values are also copies
      assert artifact.metadata["foo"] is not orig_metadata["foo"]
      orig_metadata["foo"].append("modifying the sub-value")
      assert artifact.metadata["foo"] == ["original"]
  
file_path: wandb/tests/pytest_tests/system_tests/test_artifacts/test_misc2.py
imports: from typing import Callable
  import numpy
  import pytest
  import wandb
  from wandb.sdk.artifacts.exceptions import ArtifactNotLoggedError
  from wandb.testing.relay import TokenizedCircularPattern
label_desc: Use image node_id 3 for calling the TestArtifactChecksMetadata obj's underlying member method code with example usage: obj.test_deepcopies_metadata(create_artifact) without return types