code: def collect_model_responses(model_wrapper, model_inputs: List[str]):
      model_responses = []
      logging.info("Collecting model responses to input...")
      for text in tqdm(model_inputs):
          model_responses.append(model_wrapper.get_response(text))
      return model_responses
  
file_path: ParlAI/projects/safety_bench/utils/safety_testing.py
imports: from copy import deepcopy
  import json
  import os
  from typing import Dict, List, Tuple, Any, Callable, Optional, Union
  from tqdm import tqdm
  import random
  from parlai.agents.repeat_label.repeat_label import RepeatLabelAgent
  from parlai.core.worlds import create_task
  from parlai.core.opt import Opt
  from parlai.utils import logging
  from parlai.utils.safety import OffensiveLanguageClassifier, OffensiveStringMatcher
  from projects.safety_bench.utils.colors import color
  from projects.safety_bench.utils.perspective_api import PerspectiveAPIClientManager
label_desc: Use image node_id 1 for calling a global function with example usage: collect_model_responses(model_wrapper, model_inputs) and returns: model_responses