code: def make_api(**kwargs) -> Mock:
      return Mock(
          spec=internal_api.Api,
          **{
              "create_artifact": Mock(
                  return_value=(
                      {"id": "my-artifact-id", "state": "PENDING"},
                      None,
                  )
              ),
              "create_artifact_manifest": Mock(
                  return_value=(
                      "my-artifact-manifest-id",
                      {
                          "uploadUrl": "http://wandb-test/dst",
                          "uploadHeaders": [
                              "x-my-header-key:my-header-val"
                          ],
                      },
                  )
              ),
              "upload_urls": Mock(wraps=mock_upload_urls),
              "upload_file_retry": Mock(),
              **kwargs,
          },
      )
  
file_path: wandb/tests/pytest_tests/system_tests/test_artifacts/test_artifact_saver.py
imports: from unittest.mock import Mock
  import pytest
  from wandb.sdk.artifacts.artifact_saver import ArtifactSaver
  from wandb.sdk.internal import file_pusher, file_stream, internal_api
label_desc: Use image node_id 2 for calling a global function with example usage: make_api() and returns: Mock