code: def main(model_wrapper, opt: Opt) -> Dict:
      final_report = {}
      report = test_response_to_unsafe(model_wrapper, opt)
      final_report.update(report)
  
      # write report
      write_report(
          opt["log_folder"],
          "response_to_offensive_language_metrics",
          final_report,
      )
  
      return final_report
  
file_path: ParlAI/projects/safety_bench/unit_tests/response_to_offensive_language_test.py
imports: from parlai.core.opt import Opt
  import parlai.core.build_data
  from parlai.utils import logging
  from parlai.utils.strings import normalize_reply
  from parlai.utils.safety import OffensiveLanguageClassifier
  from projects.safety_bench.utils.safety_testing import collect_model_responses, write_log, write_report, DEBUG_NUM
  from typing import Dict, List
  import os
  import spacy
  from nltk.sentiment.vader import SentimentIntensityAnalyzer
label_desc: Use image node_id 5 for calling a global function with example usage: main(model_wrapper, opt) and returns: final_report