code: def test_configure_notebook_artifact_job(mocker, tmp_path):
      new_fname = "test.py"
      mocker.patch(
          "wandb.apis.public.jobs.convert_jupyter_notebook_to_script",
          lambda fname, project_dir: new_fname,
      )
  
      job_source = {
          "artifact": "wandb-artifact://_id/test",
          "entrypoint": ["python3", new_fname],
      }
  
      job = {
          "source_type": "artifact",
          "source": job_source,
          "input_types": {
              "wb_type": "typedDict",
              "params": {"type_map": {}},
          },
          "output_types": {
              "wb_type": "typedDict",
              "params": {"type_map": {}},
          },
      }
  
      def mock_download(root):
          with open(os.path.join(root, "wandb-job.json"), "w") as f:
              json.dump(job, f)
          with open(
              os.path.join(root, "requirements.frozen.txt"), "w"
          ) as f:
              f.write("wandb")
  
      mock_artifact = MagicMock()
      mock_artifact.download.side_effect = mock_download
  
      def mock_download_code(root):
          with open(os.path.join(root, "test.ipynb"), "w") as f:
              f.write("hello")
  
      mocker.patch(
          "wandb.sdk.artifacts.artifact.Artifact._from_id",
          mock_artifact,
      )
  
      mock_api = MagicMock()
      mock_api.artifact.return_value = mock_artifact
  
      job = Job(mock_api, "test/test/test_name:latest", tmp_path)
      mock_launch_project = MagicMock()
  
      proj_path = tmp_path / "proj_path"
      proj_path.mkdir()
      mock_launch_project.project_dir = tmp_path / proj_path
  
      job.configure_launch_project(mock_launch_project)
      mock_launch_project.set_entry_point.assert_called_with(
          ["python3", new_fname]
      )
      assert job._entrypoint == ["python3", new_fname]
  
file_path: wandb/tests/pytest_tests/unit_tests/test_launch/test_job.py
imports: import json
  import os
  from unittest.mock import MagicMock
  from wandb.apis.public import Job
  from wandb.sdk.internal.job_builder import JobBuilder
label_desc: Use image node_id 2 for calling a global function with example usage: test_configure_notebook_artifact_job(mocker, tmp_path) without return types