nodes: 0, module; 1, function_definition; 2, function_name:get_golden_chunk_records; 3, parameters; 4, block; 5, expression_statement; 6, expression_statement; 7, return_statement; 8, comment:"""Return up to num_records of golden chunks to train on.
  
    Returns:
      A list of golden chunks up to num_records in length, sorted by path.
    """; 9, assignment; 10, subscript; 11, identifier:pattern; 12, call; 13, call; 14, slice; 15, attribute; 16, argument_list; 17, identifier:sorted; 18, argument_list; 19, attribute; 20, attribute; 21, identifier:join; 22, call; 23, string; 24, call; 25, keyword_argument; 26, identifier:FLAGS; 27, identifier:window_size; 28, identifier:os; 29, identifier:path; 30, attribute; 31, argument_list; 32, string_content:*.zz; 33, attribute; 34, argument_list; 35, identifier:reverse; 36, True; 37, identifier:fsdb; 38, identifier:golden_chunk_dir; 39, attribute; 40, identifier:Glob; 41, identifier:pattern; 42, identifier:tf; 43, identifier:gfile
code: def get_golden_chunk_records():
    """Return up to num_records of golden chunks to train on.
  
    Returns:
      A list of golden chunks up to num_records in length, sorted by path.
    """
  
    pattern = os.path.join(fsdb.golden_chunk_dir(), '*.zz')
    return sorted(tf.gfile.Glob(pattern), reverse=True)[:FLAGS.window_size]