code: def get_rows_for_set(reader, req_set):
      selected_rows = [
          row for row in reader if row["set"].strip() == req_set
      ]
      return selected_rows
  
file_path: ParlAI/parlai/tasks/narrative_qa/build.py
imports: import parlai.core.build_data
  import os
  import subprocess
  import shutil
  import csv
  import time
  from parlai.core.build_data import DownloadableFile
  from parlai.utils.io import PathManager
label_desc: Use image node_id 1 for calling a global function with example usage: get_rows_for_set(reader, req_set) and returns: selected_rows