code: def test_loading_rai_insights_without_model_file(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:
          assert rai_insights.model is not None
          save_path = Path(tmpdir) / "rai_insights"
          rai_insights.save(save_path)
  
          # Remove the model.pkl file to cause an exception to occur
          # while loading the model.
          model_name = "text-classification-model"
          model_pkl_path = Path(tmpdir) / "rai_insights" / model_name
          shutil.rmtree(model_pkl_path)
          if sys.version_info[:2] == (3, 7):
              match_msg = "Can't load the configuration"
              expected_error = OSError
          else:
              match_msg = "local folder"
              expected_error = OSError
          with pytest.raises(expected_error, match=match_msg):
              without_model_rai_insights = RAITextInsights.load(
                  save_path
              )
              assert without_model_rai_insights.model is None
  
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 3 for calling the TestRAITextInsightsSaveAndLoadScenarios obj's underlying member method code with example usage: obj.test_loading_rai_insights_without_model_file() without return types