class_docstr: Abstract parent class for HuggingFace teachers. Extend this class and specify the
  attributes below to use a different dataset.
  
  hf_path = path parameter passed into hugging face load_dataset function
  hf_name = name parameter passed into hugging face load_dataset function
  hf_text_fields = list of names of the data fields from the dataset to be included in the text/query
  hf_message_fields = [optional] list of names of the data fields from the dataset to be included in the message object but *not* text
  hf_label_field = name of the data field from the hf dataset that specifies the label of the episode
  hf_splits_mapping = dictionary mapping with the keys 'train', 'valid', and 'test', that map to the
  names of the splits of the hf dataset.
  render_text_field = bool where if True, will include the text field name in the query (e.g. "sentence: <sentence>")
class_docstr_tok: ["Abstract","parent","class","for","HuggingFace","teachers",".","Extend","this","class","and","specify","the","attributes","below","to","use","a","different","dataset",".","hf_path","=","path","parameter","passed","into","hugging","face","load_dataset","function","hf_name","=","name","parameter","passed","into","hugging","face","load_dataset","function","hf_text_fields","=","list","of","names","of","the","data","fields","from","the","dataset","to","be","included","in","the","text\/query","hf_message_fields","=","[","optional","]","list","of","names","of","the","data","fields","from","the","dataset","to","be","included","in","the","message","object","but","*","not","*","text","hf_label_field","=","name","of","the","data","field","from","the","hf","dataset","that","specifies","the","label","of","the","episode","hf_splits_mapping","=","dictionary","mapping","with","the","keys","'train","'",",","'valid","'",",","and","'test","'",",","that","map","to","the","names","of","the","splits","of","the","hf","dataset",".","render_text_field","=","bool","where","if","True",",","will","include","the","text","field","name","in","the","query","(","e.g",".","``","sentence",":","<","sentence",">","''",")"]
docstr: return the constructed text query and dict mapping text field names to values.
docstr_tok: ["return","the","constructed","text","query","and","dict","mapping","text","field","names","to","values","."]
code: def _get_text_value(self, row) -> Tuple[str, Dict[str, str]]:
      """
      return the constructed text query and dict mapping text field names to values.
      """
      # construct text query from the hf_text_fields specified
      text_dict = {}
      for col in self.hf_text_fields:
          text_part = row.get(col)
          if text_part is None:
              raise KeyError(f'Feature "{col}" not found in data.')
          text_dict[col] = text_part
      query = "\n".join(text_dict.values())
      if hasattr(self, "hf_message_fields"):
          for col in self.hf_message_fields:
              text_part = row.get(col)
              if text_part is None:
                  raise KeyError(f'Feature "{col}" not found in data.')
              text_dict[col] = text_part
      return query, text_dict
  
file_path: ParlAI/parlai/tasks/huggingface/agents.py
imports: from parlai.core.build_data import make_dir
  from parlai.core.teachers import DialogTeacher
  from parlai.utils.data import DatatypeHelper
  from typing import Dict, Iterable, List, Optional, Tuple
  from typing_extensions import TypedDict
  import os
  import datasets
label_desc: Use image node_id 3 for calling the AbstractHuggingFaceTeacher obj's underlying member method code with example usage: obj._get_text_value(row) and returns: query,  text_dict