code: def test__get_entrypoint():
      dir = tempfile.TemporaryDirectory().name
      job_source = "artifact"
      builder = _configure_job_builder_for_partial(dir, job_source)
  
      metadata = {
          "python": "3.9.11",
          "codePathLocal": "main.py",
          "_partial": "v0",
      }
  
      program_relpath = builder._get_program_relpath(
          job_source, metadata
      )
      entrypoint = builder._get_entrypoint(program_relpath, metadata)
      assert entrypoint == ["python3.9", "main.py"]
  
      metadata = {
          "python": "3.9",
          "codePath": "main.py",
          "_partial": "v0",
      }
      program_relpath = builder._get_program_relpath(
          job_source, metadata
      )
      entrypoint = builder._get_entrypoint(program_relpath, metadata)
      assert entrypoint == ["python3.9", "main.py"]
  
      with pytest.raises(AssertionError):
          metadata = {"codePath": "main.py", "_partial": "v0"}
          program_relpath = builder._get_program_relpath(
              job_source, metadata
          )
          entrypoint = builder._get_entrypoint(
              program_relpath, metadata
          )
  
      metadata = {"codePath": "main.py"}
      program_relpath = builder._get_program_relpath(
          job_source, metadata
      )
      entrypoint = builder._get_entrypoint(program_relpath, metadata)
  
      assert entrypoint == [os.path.basename(sys.executable), "main.py"]
  
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 6 for calling a global function with example usage: test__get_entrypoint() without return types