def get_tag_by_name(self, tag_name: str) -> TagData:
        """Gets a tag from the current dataset by tag name.

        Args:
            tag_name:
                Name of the requested tag.

        Returns:
            Tag data for the requested 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.get_tag_by_name("cool-tag")
            {'created_at': 1684750550014,
             'dataset_id': '646b40a18355e2f54c6d2200',
             'id': '646b40d6c06aae1b91294a9e',
             'last_modified_at': 1684750550014,
             'name': 'cool-tag',
             'preselected_tag_id': None,
             ...}
        """
        tag_name_id_dict = {tag.name: tag.id for tag in self.get_all_tags()}
        tag_id = tag_name_id_dict.get(tag_name, None)
        if tag_id is None:
            raise TagDoesNotExistError(f"Your tag_name does not exist: {tag_name}.")
        return self.get_tag_by_id(tag_id)
Gets a tag from the current dataset by tag name.

        Args:
            tag_name:
                Name of the requested tag.

        Returns:
            Tag data for the requested 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.get_tag_by_name("cool-tag")
            {'created_at': 1684750550014,
             'dataset_id': '646b40a18355e2f54c6d2200',
             'id': '646b40d6c06aae1b91294a9e',
             'last_modified_at': 1684750550014,
             'name': 'cool-tag',
             'preselected_tag_id': None,
             ...}
        
lightly/api/api_workflow_tags.py