code: def test_rai_insights_empty_save_load_save(self):
      data = load_emotion_dataset()
      pred = create_text_classification_pipeline()
      train = data
      test = data[:3]
      classes = train[EMOTION].unique()
      classes.sort()
  
      rai_insights = RAITextInsights(
          pred,
          test,
          EMOTION,
          task_type=ModelTask.TEXT_CLASSIFICATION,
          serializer=TextClassificationPipelineSerializer(),
          classes=classes,
      )
  
      with TemporaryDirectory() as tmpdir:
          save_1 = Path(tmpdir) / "first_save"
          save_2 = Path(tmpdir) / "second_save"
  
          # Save it
          rai_insights.save(save_1)
          assert len(os.listdir(save_1 / ManagerNames.EXPLAINER)) == 0
          assert (
              len(os.listdir(save_1 / ManagerNames.ERROR_ANALYSIS)) == 0
          )
  
          # Load
          rai_2 = RAITextInsights.load(save_1)
  
          # Validate
          validate_rai_text_insights(
              rai_2,
              classes,
              test,
              EMOTION,
              ModelTask.TEXT_CLASSIFICATION,
          )
  
          # Save again
          rai_2.save(save_2)
          assert len(os.listdir(save_2 / ManagerNames.EXPLAINER)) == 0
          assert (
              len(os.listdir(save_2 / ManagerNames.ERROR_ANALYSIS)) == 0
          )
  
file_path: responsible-ai-toolbox/responsibleai_text/tests/test_rai_text_insights_save_and_load_scenarios.py
imports: import os
  import shutil
  import sys
  from pathlib import Path
  from tempfile import TemporaryDirectory
  import pytest
  from common_text_utils import COVID19_EVENTS_LABELS, EMOTION, MultilabelTextClassificationSerializer, TextClassificationPipelineSerializer, create_multilabel_pipeline, create_text_classification_pipeline, load_covid19_emergency_event_dataset, load_emotion_dataset
  from rai_text_insights_validator import validate_rai_text_insights
  from responsibleai._internal.constants import ManagerNames
  from responsibleai.feature_metadata import FeatureMetadata
  from responsibleai_text import ModelTask, RAITextInsights
label_desc: Use image node_id 1 for calling the TestRAITextInsightsSaveAndLoadScenarios obj's underlying member method code with example usage: obj.test_rai_insights_empty_save_load_save() without return types