class_docstr: Exports critique request results.
  
  The request results will be imported from all files matching
  turk/{template.name}/Batch_{batch_number}_batch_results.csv
class_docstr_tok: ["Exports","critique","request","results",".","The","request","results","will","be","imported","from","all","files","matching","turk\/","{","template.name","}","\/Batch_","{","batch_number","}","_batch_results.csv"]
docstr: Import all rows from the CSV and store them in `self._request_key_to_results`.
docstr_tok: ["Import","all","rows","from","the","CSV","and","store","them","in","`","self._request_key_to_results","`","."]
code: def _import_from_file_path(self, file_path: str) -> None:
      """Import all rows from the CSV and store them in `self._request_key_to_results`."""
      request_key_to_responses: Dict[
          _CritiqueRequestKey, List[CritiqueResponse]
      ] = defaultdict(list)
      with open(file_path) as f:
          dict_reader = csv.DictReader(f)
          for row in dict_reader:
              request_key = self._make_request_key(
                  self._get_fields_from_row(row)
              )
              response = self._get_response_from_row(row)
              request_key_to_responses[request_key].append(response)
          for (
              request_key,
              responses,
          ) in request_key_to_responses.items():
              self._request_key_to_results[
                  request_key
              ] = CritiqueRequestResult(responses)
  
file_path: H2O/h2o_hf/helm/src/helm/proxy/clients/mechanical_turk_critique_importer.py
imports: from collections import defaultdict
  import csv
  import os
  from threading import Lock
  from typing import Dict, List, Optional, Tuple, Union
  import re
  from helm.common.critique_request import CritiqueRequest, CritiqueResponse, CritiqueTaskTemplate, QuestionType, CritiqueRequestResult
  from helm.common.hierarchical_logger import hlog
label_desc: Use image node_id 4 for calling the _MechanicalTurkRequestImporter obj's underlying member method code with example usage: obj._import_from_file_path(file_path) without return types