def export_label_box_data_rows_by_tag_id(
        self,
        tag_id: str,
    ) -> List[Dict]:
        """Fetches samples in a format compatible with Labelbox v3.

        The format is documented here: https://docs.labelbox.com/docs/images-json

        More information:
        https://docs.lightly.ai/docs/labelbox

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

        Returns:
            A list of dictionaries in a format compatible with Labelbox v3.

        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_box_data_rows_by_tag_id(tag_id="646f34608a5613b57d8b73cc")
            [{'externalId': '2218961434_7916358f53_z.jpg', 'imageUrl': ...}]
        """
        warnings.warn(
            DeprecationWarning(
                "This method exports data in the deprecated Labelbox v3 format and "
                "will be removed in the future. Use export_label_box_v4_data_rows_by_tag_id "
                "to export data in the Labelbox v4 format instead."
            )
        )
        label_box_data_rows: List[LabelBoxDataRow] = list(
            utils.paginate_endpoint(
                self._tags_api.export_tag_to_label_box_data_rows,
                page_size=2500,
                dataset_id=self.dataset_id,
                tag_id=tag_id,
            )
        )
        return [row.to_dict(by_alias=True) for row in label_box_data_rows]
Fetches samples in a format compatible with Labelbox v3.

        The format is documented here: https://docs.labelbox.com/docs/images-json

        More information:
        https://docs.lightly.ai/docs/labelbox

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

        Returns:
            A list of dictionaries in a format compatible with Labelbox v3.

        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_box_data_rows_by_tag_id(tag_id="646f34608a5613b57d8b73cc")
            [{'externalId': '2218961434_7916358f53_z.jpg', 'imageUrl': ...}]
        
lightly/api/api_workflow_export.py