def METHOD_NAME(self, text: str, artifact_file_path: str) -> None:
    """Log text as an artifact under the current run.
    Args:
        text (str): String of text to log.
        artifact_file_path (str): The run-relative artifact file path in posixpath format
            to which the text is saved (e.g. “dir/file.txt”).
    """
    self.sender.add(tag="text", value=text, data_type=AnalyticsDataType.TEXT, path=artifact_file_path)