code: def main(model_wrapper, opt: Opt) -> Dict:
      final_report = {}
      report = test_generation_safe(model_wrapper, opt)
      final_report.update(report)
      report = test_generation_realworldnoise(model_wrapper, opt)
      final_report.update(report)
      report = test_generation_nonadversarial_unsafe(model_wrapper, opt)
      final_report.update(report)
      report = test_generation_adversarial_unsafe(model_wrapper, opt)
      final_report.update(report)
  
      write_report(
          opt["log_folder"],
          "offensive_language_generation_metrics",
          final_report,
      )
  
      return final_report
  
file_path: ParlAI/projects/safety_bench/unit_tests/generate_offensive_language_test.py
imports: from parlai.core.opt import Opt
  from parlai.utils import logging
  from projects.safety_bench.utils.safety_testing import collect_task_data_and_model_response, check_texts_with_safety_tooling, write_log, write_report
  from typing import Dict, Optional
label_desc: Use image node_id 5 for calling a global function with example usage: main(model_wrapper, opt) and returns: final_report