code: def test_log_with_wrong_type_entity_project(
      wandb_init, logged_artifact
  ):
      # todo: logged_artifact does not work with core
      entity, project = logged_artifact.entity, logged_artifact.project
  
      draft = logged_artifact.new_draft()
      draft._type = "futz"
      with pytest.raises(
          ValueError, match="already exists with type 'dataset'"
      ):
          with wandb_init(entity=entity, project=project) as run:
              run.log_artifact(draft)
  
      draft = logged_artifact.new_draft()
      draft._source_entity = "mistaken"
      with pytest.raises(
          ValueError, match="can't be moved to 'mistaken'"
      ):
          with wandb_init(entity=entity, project=project) as run:
              run.log_artifact(draft)
  
      draft = logged_artifact.new_draft()
      draft._source_project = "wrong"
      with pytest.raises(ValueError, match="can't be moved to 'wrong'"):
          with wandb_init(entity=entity, project=project) as run:
              run.log_artifact(draft)
  
file_path: wandb/tests/pytest_tests/system_tests/test_artifacts/test_public_api.py
imports: import os
  import pytest
  import wandb
  from wandb import Api
label_desc: Use image node_id 6 for calling a global function with example usage: test_log_with_wrong_type_entity_project(wandb_init, logged_artifact) without return types