code: def test_get_tag_name__nonexisting(mocker: MockerFixture) -> None:
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocker.patch.object(
          ApiWorkflowClient, "get_all_tags", return_value=[]
      )
  
      client = ApiWorkflowClient()
  
      with pytest.raises(TagDoesNotExistError) as exception:
          client.get_tag_by_name(tag_name="some-tag")
          assert (
              str(exception.value)
              == "Your tag_name does not exist: some-tag"
          )
  
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 12 for calling a global function with example usage: test_get_tag_name__nonexisting(mocker) without return types