docstr: Fetches samples filenames within a certain tag by tag name.
  
  More information:
  https://docs.lightly.ai/docs/filenames-and-readurls
  
  Args:
      tag_name:
          Name of the tag which should exported.
  
  Returns:
      A list of filenames of samples within a certain tag.
  
  Examples:
      >>> # write json file which can be imported in Label Studio
      >>> filenames = client.export_filenames_by_tag_name(
      >>>     'initial-tag'
      >>> )
      >>>
      >>> with open('filenames-of-initial-tag.txt', 'w') as f:
      >>>     f.write(filenames)
docstr_tok: ["Fetches","samples","filenames","within","a","certain","tag","by","tag","name",".","More","information",":","https",":","\/\/docs.lightly.ai\/docs\/filenames-and-readurls","Args",":","tag_name",":","Name","of","the","tag","which","should","exported",".","Returns",":","A","list","of","filenames","of","samples","within","a","certain","tag",".","Examples",":",">",">",">","#","write","json","file","which","can","be","imported","in","Label","Studio",">",">",">","filenames","=","client.export_filenames_by_tag_name","(",">",">",">","'initial-tag'",">",">",">",")",">",">",">",">",">",">","with","open","(","'filenames-of-initial-tag.txt","'",",","'","w","'",")","as","f",":",">",">",">","f.write","(","filenames",")"]
code: def export_filenames_by_tag_name(
      self,
      tag_name: str,
  ) -> str:
      """Fetches samples filenames within a certain tag by tag name.
  
      More information:
      https://docs.lightly.ai/docs/filenames-and-readurls
  
      Args:
          tag_name:
              Name of the tag which should exported.
  
      Returns:
          A list of filenames of samples within a certain tag.
  
      Examples:
          >>> # write json file which can be imported in Label Studio
          >>> filenames = client.export_filenames_by_tag_name(
          >>>     'initial-tag'
          >>> )
          >>>
          >>> with open('filenames-of-initial-tag.txt', 'w') as f:
          >>>     f.write(filenames)
  
      """
      tag = self.get_tag_by_name(tag_name)
      return self.export_filenames_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 8 for calling the _ExportDatasetMixin obj's underlying member method code with example usage: obj.export_filenames_by_tag_name(tag_name) and returns: self