code: def test_export_filenames_by_tag_id__two_pages(
      mocker: MockerFixture,
  ) -> None:
      dataset_id = utils.generate_id()
      mocked_paginate = mocker.patch.object(
          api_utils,
          "paginate_endpoint",
          side_effect=[
              # Simulate two pages.
              iter(["file0\nfile1", "file2\nfile3"])
          ],
      )
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocked_api = mocker.MagicMock()
  
      client = ApiWorkflowClient()
      client._dataset_id = dataset_id
      client._tags_api = mocked_api
      data = client.export_filenames_by_tag_id(tag_id="tag_id")
  
      assert data == "file0\nfile1\nfile2\nfile3"
      mocked_paginate.assert_called_once_with(
          mocked_api.export_tag_to_basic_filenames,
          dataset_id=dataset_id,
          tag_id="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 3 for calling a global function with example usage: test_export_filenames_by_tag_id__two_pages(mocker) without return types