code: def test_export_label_box_v4_data_rows_by_tag_id(
      mocker: MockerFixture,
  ) -> None:
      mocker.patch.object(
          ApiWorkflowClient, "__init__", return_value=None
      )
      mocked_paginate = mocker.patch.object(
          api_workflow_export.utils, "paginate_endpoint"
      )
      mocked_api = mocker.MagicMock()
  
      client = ApiWorkflowClient()
      client._dataset_id = utils.generate_id()
      client._tags_api = mocked_api
      client.export_label_box_v4_data_rows_by_tag_id(tag_id="tag_id")
      mocked_paginate.assert_called_once()
      call_args = mocked_paginate.call_args[0]
      assert (
          call_args[0]
          == mocked_api.export_tag_to_label_box_v4_data_rows
      )
  
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 9 for calling a global function with example usage: test_export_label_box_v4_data_rows_by_tag_id(mocker) without return types