code: def _get_tag(dataset_id: str, tag_name: str) -> TagData:
      return TagData(
          id=utils.generate_id(),
          dataset_id=dataset_id,
          prev_tag_id=None,
          bit_mask_data="0x1",
          name=tag_name,
          tot_size=4,
          created_at=1577836800,
          changes=[],
      )
  
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 1 for calling a global function with example usage: _get_tag(dataset_id, tag_name) and returns: TagData