def export_filenames_by_tag_id(
        self,
        tag_id: str,
    ) -> str:
        """Fetches samples filenames within a certain tag by tag ID.

        More information:
        https://docs.lightly.ai/docs/filenames-and-readurls

        Args:
            tag_id:
                ID of the tag which should exported.

        Returns:
            A list of filenames of samples within a certain tag.

        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_filenames_by_tag_id("646b40d6c06aae1b91294a9e")
            'image-1.jpg\nimage-2.jpg\nimage-3.jpg'
        """
        filenames = "\n".join(
            utils.paginate_endpoint(
                self._tags_api.export_tag_to_basic_filenames,
                dataset_id=self.dataset_id,
                tag_id=tag_id,
            )
        )
        return filenames
Fetches samples filenames within a certain tag by tag ID.

        More information:
        https://docs.lightly.ai/docs/filenames-and-readurls

        Args:
            tag_id:
                ID of the tag which should exported.

        Returns:
            A list of filenames of samples within a certain tag.

        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_filenames_by_tag_id("646b40d6c06aae1b91294a9e")
            'image-1.jpg
image-2.jpg
image-3.jpg'
        
lightly/api/api_workflow_export.py