code: def main():
      # create an artifact
      # call .wait() to get a Public Artifact bound to it
      # and then do link on that artifact
      run = wandb.init()
      with open("my-dataset.txt", "w") as fp:
          fp.write("this-is-data")
      art = wandb.Artifact("my-art-name", "my-art-type")
      art.add_file("my-dataset.txt")
      art = run.log_artifact(art)
      art.wait()
      art.link("entity/project/test_portfolio", aliases="best")
      run.finish()
  
file_path: wandb/tests/functional_tests/t0_main/artifacts/public-link-model.py
imports: import torch
  import torch.nn
  import torch.nn.functional
  import wandb
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types