code: def test_save_aliases_after_logging_artifact(user, wandb_init):
      project = "test"
      run = wandb_init(entity=user, project=project)
      artifact = wandb.Artifact("test-artifact", "test-type")
      with open("boom.txt", "w") as f:
          f.write("testing")
      artifact.add_file("boom.txt", "test-name")
      run.log_artifact(artifact, aliases=["sequence"])
      artifact.wait()
      artifact.aliases.append("hello")
      artifact.save()
      run.finish()
  
      # fetch artifact and verify alias exists
      artifact = Api().artifact(
          name=f"{user}/{project}/test-artifact:v0", type="test-type"
      )
      aliases = artifact.aliases
      assert "hello" in aliases
  
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 2 for calling a global function with example usage: test_save_aliases_after_logging_artifact(user, wandb_init) without return types