code: def test_get_tag_by_id(mocker: MockerFixture) -> None:
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocked_api = mocker.MagicMock()
  
      client = ApiWorkflowClient()
      client._dataset_id = "dataset-id"
      client._tags_api = mocked_api
      client.get_tag_by_id("tag-id")
      mocked_api.get_tag_by_tag_id.assert_called_once_with(
          dataset_id="dataset-id", tag_id="tag-id"
      )
  
file_path: lightly/tests/api_workflow/test_api_workflow_tags.py
imports: from typing import List, Optional
  import pytest
  from pytest_mock import MockerFixture
  from lightly.api import ApiWorkflowClient
  from lightly.api.api_workflow_tags import TagDoesNotExistError
  from lightly.openapi_generated.swagger_client.models import TagCreator, TagData
  from tests.api_workflow import utils
label_desc: Use image node_id 10 for calling a global function with example usage: test_get_tag_by_id(mocker) without return types