code: def list_files_by_mtime(dirpath):
      """Return a list of files in the directory, sorted in increasing "mtime".
  
      Return a list of files in the given directory, sorted from older to newer file
      according to their modification times.  Only return actual files, skipping
      directories, symbolic links, pipes, etc.
  
      Args:
        dirpath: directory pathname
  
      Returns:
        A list of file names relative to the given directory path.
      """
      files = [
          f for f in os.listdir(dirpath) if is_real_file(dirpath, f)
      ]
      return sorted(files, key=lambda f: get_mtime(dirpath, f))
  
file_path: tensorflow/tensorflow/tools/test/upload_test_benchmarks.py
imports: import argparse
  import datetime
  import fcntl
  import json
  import os
  import shutil
  from google.cloud import datastore
label_desc: Use image node_id 3 for calling a global function with example usage: list_files_by_mtime(dirpath) and returns: sorted