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