code: def test_export_label_studio_tasks_by_tag_name(
      mocker: MockerFixture,
  ) -> None:
      dataset_id = utils.generate_id()
      tag_name = "some-tag"
      tag = _get_tag(dataset_id=dataset_id, tag_name=tag_name)
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocked_get_tag = mocker.patch.object(
          ApiWorkflowClient, "get_tag_by_name", return_value=tag
      )
      mocked_export = mocker.patch.object(
          ApiWorkflowClient, "export_label_studio_tasks_by_tag_id"
      )
      client = ApiWorkflowClient()
      client._dataset_id = dataset_id
      client.export_label_studio_tasks_by_tag_name(tag_name)
      mocked_get_tag.assert_called_once_with(tag_name)
      mocked_export.assert_called_once_with(tag.id)
  
file_path: lightly/tests/api_workflow/test_api_workflow_export.py
imports: from pytest_mock import MockerFixture
  from lightly.api import ApiWorkflowClient, api_workflow_export
  from lightly.api import utils
  from lightly.openapi_generated.swagger_client.models import FileNameFormat, TagData
  from tests.api_workflow import utils
label_desc: Use image node_id 11 for calling a global function with example usage: test_export_label_studio_tasks_by_tag_name(mocker) without return types