code: def test_make_code_artifact_name():
      name = "karen"
  
      assert _make_code_artifact_name("./test", name) == f"code-{name}"
      assert _make_code_artifact_name("./test", None) == "code-test"
      assert _make_code_artifact_name("test", None) == "code-test"
      assert _make_code_artifact_name("/test", None) == "code-test"
      assert _make_code_artifact_name("/test/", None) == "code-test"
      assert _make_code_artifact_name("./test/", None) == "code-test"
  
      assert (
          _make_code_artifact_name("/test/dir", None) == "code-test_dir"
      )
      assert (
          _make_code_artifact_name("./test/dir/", None)
          == "code-test_dir"
      )
  
file_path: wandb/tests/pytest_tests/unit_tests/test_launch/test_create_job.py
imports: import json
  import os
  import platform
  import sys
  import tempfile
  import pytest
  from wandb.sdk.internal.job_builder import JobBuilder
  from wandb.sdk.launch.builder.build import get_current_python_version
  from wandb.sdk.launch.create_job import _configure_job_builder_for_partial, _create_artifact_metadata, _dump_metadata_and_requirements, _handle_artifact_entrypoint, _make_code_artifact_name
label_desc: Use image node_id 4 for calling a global function with example usage: test_make_code_artifact_name() without return types