docstr: Flattens all test examples into a single list
  
  Parameters
  ----------
  file_format : string, must be one of 'jsonl', 'tsv', or None
      None just calls str(x) for each example in self.data
  format_fn : function or None
      If not None, call this function to format each example in self.data
  n : int
      If not None, number of samples to draw
  seed : int
      Seed to use if n is not None
  new_sample: bool
      If False, will rely on a previous sample and ignore the 'n' and 'seed' parameters
  
  Returns
  -------
  list(string)
      List of all examples. Indices of example to test case will be
      stored in self.result_indexes. If n is not None, self.run_idxs will
      store the test case indexes.
docstr_tok: ["Flattens","all","test","examples","into","a","single","list","Parameters","--","--","--","--","--","file_format",":","string",",","must","be","one","of","'jsonl","'",",","'tsv","'",",","or","None","None","just","calls","str","(","x",")","for","each","example","in","self.data","format_fn",":","function","or","None","If","not","None",",","call","this","function","to","format","each","example","in","self.data","n",":","int","If","not","None",",","number","of","samples","to","draw","seed",":","int","Seed","to","use","if","n","is","not","None","new_sample",":","bool","If","False",",","will","rely","on","a","previous","sample","and","ignore","the","'n","'","and","'seed","'","parameters","Returns","--","--","--","-","list","(","string",")","List","of","all","examples",".","Indices","of","example","to","test","case","will","be","stored","in","self.result_indexes",".","If","n","is","not","None",",","self.run_idxs","will","store","the","test","case","indexes","."]
code: def to_raw_examples(
      self,
      file_format=None,
      format_fn=None,
      n=None,
      seed=None,
      new_sample=True,
  ):
      """Flattens all test examples into a single list
  
      Parameters
      ----------
      file_format : string, must be one of 'jsonl', 'tsv', or None
          None just calls str(x) for each example in self.data
      format_fn : function or None
          If not None, call this function to format each example in self.data
      n : int
          If not None, number of samples to draw
      seed : int
          Seed to use if n is not None
      new_sample: bool
          If False, will rely on a previous sample and ignore the 'n' and 'seed' parameters
  
      Returns
      -------
      list(string)
          List of all examples. Indices of example to test case will be
          stored in self.result_indexes. If n is not None, self.run_idxs will
          store the test case indexes.
      """
      if file_format == "jsonl":
          import json
  
          format_fn = lambda x: json.dumps(x)
      elif file_format == "tsv":
          format_fn = lambda x: "\t".join(x).replace("\n", " ")
      else:
          if format_fn is None:
              format_fn = lambda x: str(x).replace("\n", " ")
      if new_sample:
          examples, indices = self.example_list_and_indices(
              n, seed=seed
          )
      else:
          examples, indices = self.recover_example_list_and_indices()
      examples = [format_fn(x) for x in examples]
      return examples
  
imports: from abc import ABC, abstractmethod
  import dill
  from munch import Munch
  import numpy
  import inspect
  from .expect import iter_with_optional, Expect
  from .viewer.test_summarizer import TestSummarizer
label_desc: Use image node_id 11 for calling the AbstractTest obj's underlying member method code with example usage: obj.to_raw_examples(file_format, format_fn, n, seed, new_sample) and returns: examples