code: def mock_autolog_api(patch_api):
      autolog_api = AutologAPI(
          name="MockAPI",
          symbols=["generate", "Chat.complete"],
          resolver=mock_resolver,
      )
      autolog_api._patch_api = patch_api
      return autolog_api
  
file_path: wandb/tests/pytest_tests/unit_tests/test_autolog_patch_integration.py
imports: from typing import Any
  from unittest.mock import MagicMock
  import pytest
  import wandb
  from wandb.sdk.integration_utils.auto_logging import AutologAPI, PatchAPI
label_desc: Use image node_id 3 for calling a global function with example usage: mock_autolog_api(patch_api) and returns: autolog_api