def get_files(path):

    if not os.path.isdir(path):
        raise TypeError("%s is not a directory." % (path, ))

    test_files = []
    for dir_path, dir_names, file_names in os.walk(path):
        # Iterate through every file and directory in dir_path
        for i in file_names + dir_names:
            # Figure out the full path of i
            cur_path = os.path.join(dir_path, i)

            # Cut off the first part of it (that includes path). So if path
            # is foo, then `foo/bla.txt` becomes `bla.txt`.
            cur_path = os.path.relpath(cur_path, path)

            test_files.append(cur_path)
    return test_files
Returns a list of all the files under the given directory. Directories are
dataset/ETHPy150Open brownhead/superzippy/superzippy/tests/file_utilities.py/get_files