docstr: Fetches samples in a format compatible with Labelbox.
  
  The format is documented here: https://docs.labelbox.com/docs/images-json
  
  More information:
  https://docs.lightly.ai/docs/labelbox
  
  Args:
      tag_name:
          Name of the tag which should exported.
  Returns:
      A list of dictionaries in a format compatible with Labelbox.
  Examples:
      >>> # write json file which can be imported in Label Studio
      >>> tasks = client.export_label_box_v4_data_rows_by_tag_name(
      >>>     'initial-tag'
      >>> )
      >>>
      >>> with open('my-labelbox-rows.json', 'w') as f:
      >>>     json.dump(tasks, f)
docstr_tok: ["Fetches","samples","in","a","format","compatible","with","Labelbox",".","The","format","is","documented","here",":","https",":","\/\/docs.labelbox.com\/docs\/images-json","More","information",":","https",":","\/\/docs.lightly.ai\/docs\/labelbox","Args",":","tag_name",":","Name","of","the","tag","which","should","exported",".","Returns",":","A","list","of","dictionaries","in","a","format","compatible","with","Labelbox",".","Examples",":",">",">",">","#","write","json","file","which","can","be","imported","in","Label","Studio",">",">",">","tasks","=","client.export_label_box_v4_data_rows_by_tag_name","(",">",">",">","'initial-tag'",">",">",">",")",">",">",">",">",">",">","with","open","(","'my-labelbox-rows.json","'",",","'","w","'",")","as","f",":",">",">",">","json.dump","(","tasks",",","f",")"]
code: def export_label_box_v4_data_rows_by_tag_name(
      self,
      tag_name: str,
  ) -> List[Dict]:
      """Fetches samples in a format compatible with Labelbox.
  
      The format is documented here: https://docs.labelbox.com/docs/images-json
  
      More information:
      https://docs.lightly.ai/docs/labelbox
  
      Args:
          tag_name:
              Name of the tag which should exported.
      Returns:
          A list of dictionaries in a format compatible with Labelbox.
      Examples:
          >>> # write json file which can be imported in Label Studio
          >>> tasks = client.export_label_box_v4_data_rows_by_tag_name(
          >>>     'initial-tag'
          >>> )
          >>>
          >>> with open('my-labelbox-rows.json', 'w') as f:
          >>>     json.dump(tasks, f)
      """
      tag = self.get_tag_by_name(tag_name)
      return self.export_label_box_v4_data_rows_by_tag_id(tag.id)
  
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 6 for calling the _ExportDatasetMixin obj's underlying member method code with example usage: obj.export_label_box_v4_data_rows_by_tag_name(tag_name) and returns: self