code: def test_resolve_artifact_name():
      file_names = {
          "a": "a",
          "a.txt": "a.txt",
          "b.": "b.",
          ".c": ".c",
          "/x/a/a.txt": "a.txt",
          "/a/b/c.": "c.",
          "./.a": ".a",
          "../b.txt": "b.txt",
          "~/a.txt": "a.txt",
          "c/d.txt": "d.txt",
      }
      for file_name, artifact_name in file_names.items():
          assert artifact_name == resolve_artifact_name(file_name)
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_resolve_artifact_name() without return types