code: def test_rai_insights_metadata_save_load_save(self, manager_type):
      data = load_covid19_emergency_event_dataset(with_metadata=True)
      pred = create_multilabel_pipeline()
      task_type = ModelTask.MULTILABEL_TEXT_CLASSIFICATION
      labels = COVID19_EVENTS_LABELS
      feature_metadata = FeatureMetadata()
      feature_metadata.categorical_features = ["language", "country"]
      test = data[:3]
      classes = None
  
      rai_insights = RAITextInsights(
          pred,
          test,
          labels,
          task_type=task_type,
          serializer=MultilabelTextClassificationSerializer(),
          feature_metadata=feature_metadata,
      )
  
      # Call a single manager
      if manager_type == ManagerNames.EXPLAINER:
          rai_insights.explainer.add()
      elif manager_type == ManagerNames.ERROR_ANALYSIS:
          rai_insights.error_analysis.add()
      else:
          raise ValueError("Bad manager_type: {0}".format(manager_type))
  
      rai_insights.compute()
  
      with TemporaryDirectory() as tmpdir:
          save_1 = Path(tmpdir) / "first_save"
          save_2 = Path(tmpdir) / "second_save"
  
          # Save it
          rai_insights.save(save_1)
  
          # Load
          rai_2 = RAITextInsights.load(save_1)
  
          # Validate
          validate_rai_text_insights(
              rai_2,
              classes,
              test,
              labels,
              ModelTask.MULTILABEL_TEXT_CLASSIFICATION,
          )
  
          # Save again
          rai_2.save(save_2)
  
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 5 for calling the TestRAITextInsightsSaveAndLoadScenarios obj's underlying member method code with example usage: obj.test_rai_insights_metadata_save_load_save(manager_type) without return types