code: def test_create_tag_from_filenames__file_not_found(
      mocker: MockerFixture,
  ) -> None:
      tags = _get_tags(
          dataset_id=utils.generate_id(), tag_name="initial-tag"
      )
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocker.patch.object(
          ApiWorkflowClient, "get_all_tags", return_value=tags
      )
      mocked_get_filenames = mocker.patch.object(
          ApiWorkflowClient,
          "get_filenames",
          return_value=[f"file{i}" for i in range(3)],
      )
  
      client = ApiWorkflowClient()
      with pytest.raises(RuntimeError) as exception:
          client.create_tag_from_filenames(
              fnames_new_tag=["some-file"], new_tag_name="some-tag"
          )
          assert str(exception.value) == (
              "An error occured when creating the new subset! "
              "Out of the 1 filenames you provided "
              "to create a new tag, only 0 have been found on the server. "
              "Make sure you use the correct filenames. "
              "Valid filename example from the dataset: file0"
          )
      mocked_get_filenames.assert_called_once()
  
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 5 for calling a global function with example usage: test_create_tag_from_filenames__file_not_found(mocker) without return types