code: def test_validates_metadata_err(
      self, create_artifact: Callable[..., wandb.Artifact]
  ):
      with pytest.raises(TypeError):
          create_artifact(metadata=123)
  
      with pytest.raises(TypeError):
          create_artifact(metadata=[])
  
      with pytest.raises(TypeError):
          create_artifact(metadata={"unserializable": object()})
  
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 2 for calling the TestArtifactChecksMetadata obj's underlying member method code with example usage: obj.test_validates_metadata_err(create_artifact) without return types