code: def test_run_use_job_env_var(
      runner, relay_server, test_settings, user, wandb_init
  ):
      art_name = "job-my-test-image"
      artifact_name = f"{user}/uncategorized/{art_name}"
      artifact_env = json.dumps(
          {"_wandb_job": f"{artifact_name}:latest"}
      )
      with runner.isolated_filesystem(), mock.patch.dict(
          "os.environ", WANDB_ARTIFACTS=artifact_env
      ):
          artifact = job_builder.JobArtifact(name=art_name)
          filename = "file1.txt"
          with open(filename, "w") as fp:
              fp.write("hello!")
          artifact.add_file(filename)
          with wandb_init(user) as run:
              run.log_artifact(artifact)
              artifact.wait()
          with relay_server() as relay:
              with wandb_init(
                  user, settings=test_settings({"launch": True})
              ) as run:
                  run.log({"x": 2})
              use_count = 0
              for data in relay.context.raw_data:
                  assert "mutation CreateArtifact(" not in data.get(
                      "request", {}
                  ).get("query", "")
                  if "mutation UseArtifact(" in data.get(
                      "request", {}
                  ).get("query", ""):
                      use_count += 1
          assert use_count == 1
  
imports: import json
  from unittest import mock
  from wandb.sdk.internal import job_builder
label_desc: Use image node_id 1 for calling a global function with example usage: test_run_use_job_env_var(runner, relay_server, test_settings, user, wandb_init) without return types