docstr: Fetches samples in a format compatible with Label Studio.
  
  The format is documented here:
  https://labelstud.io/guide/tasks.html#Basic-Label-Studio-JSON-format
  
  More information:
  https://docs.lightly.ai/docs/labelstudio-integration
  
  Args:
      tag_id:
          ID of the tag which should exported.
  
  Returns:
      A list of dictionaries in a format compatible with Label Studio.
  
  Examples:
      >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
      >>>
      >>> # Already created some Lightly Worker runs with this dataset
      >>> client.set_dataset_id_by_name("my-dataset")
      >>> client.export_label_studio_tasks_by_tag_id(tag_id="646f34608a5613b57d8b73cc")
      [{'id': 0, 'data': {'image': '...', ...}}]
docstr_tok: ["Fetches","samples","in","a","format","compatible","with","Label","Studio",".","The","format","is","documented","here",":","https",":","\/\/labelstud.io\/guide\/tasks.html","#","Basic-Label-Studio-JSON-format","More","information",":","https",":","\/\/docs.lightly.ai\/docs\/labelstudio-integration","Args",":","tag_id",":","ID","of","the","tag","which","should","exported",".","Returns",":","A","list","of","dictionaries","in","a","format","compatible","with","Label","Studio",".","Examples",":",">",">",">","client","=","ApiWorkflowClient","(","token=","''","MY_AWESOME_TOKEN","''",")",">",">",">",">",">",">","#","Already","created","some","Lightly","Worker","runs","with","this","dataset",">",">",">","client.set_dataset_id_by_name","(","``","my-dataset","''",")",">",">",">","client.export_label_studio_tasks_by_tag_id","(","tag_id=","''","646f34608a5613b57d8b73cc","''",")","[","{","'id","'",":","0",",","'data","'",":","{","'image","'",":","'","...","'",",","...","}","}","]"]
code: def export_label_studio_tasks_by_tag_id(
      self,
      tag_id: str,
  ) -> List[Dict]:
      """Fetches samples in a format compatible with Label Studio.
  
      The format is documented here:
      https://labelstud.io/guide/tasks.html#Basic-Label-Studio-JSON-format
  
      More information:
      https://docs.lightly.ai/docs/labelstudio-integration
  
      Args:
          tag_id:
              ID of the tag which should exported.
  
      Returns:
          A list of dictionaries in a format compatible with Label Studio.
  
      Examples:
          >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
          >>>
          >>> # Already created some Lightly Worker runs with this dataset
          >>> client.set_dataset_id_by_name("my-dataset")
          >>> client.export_label_studio_tasks_by_tag_id(tag_id="646f34608a5613b57d8b73cc")
          [{'id': 0, 'data': {'image': '...', ...}}]
      """
      label_studio_tasks: List[LabelStudioTask] = list(
          utils.paginate_endpoint(
              self._tags_api.export_tag_to_label_studio_tasks,
              page_size=20000,
              dataset_id=self.dataset_id,
              tag_id=tag_id,
          )
      )
      return [
          task.to_dict(by_alias=True) for task in label_studio_tasks
      ]
  
file_path: lightly/lightly/api/api_workflow_export.py
imports: import warnings
  from typing import Dict, List
  from lightly.api import utils
  from lightly.openapi_generated.swagger_client.models import FileNameFormat, LabelBoxDataRow, LabelBoxV4DataRow, LabelStudioTask
label_desc: Use image node_id 1 for calling the _ExportDatasetMixin obj's underlying member method code with example usage: obj.export_label_studio_tasks_by_tag_id(tag_id) and returns: unknown