class_docstr: OSS Filesystem Tests
code: def test_walk_in_order(self):
      dir_path_str = file_io.join(self._base_dir, "test_dir")
      dir_path = file_io.join(self._base_dir, "test_dir")
      self._setup_walk_directories(dir_path_str)
      # Now test the walk (in_order = True)
      all_dirs = []
      all_subdirs = []
      all_files = []
      for w_dir, w_subdirs, w_files in file_io.walk(
          dir_path, in_order=True
      ):
          all_dirs.append(w_dir)
          all_subdirs.append(w_subdirs)
          all_files.append(w_files)
      self.assertItemsEqual(
          all_dirs,
          [dir_path_str]
          + [
              file_io.join(dir_path_str, item)
              for item in [
                  "subdir1_1",
                  "subdir1_2",
                  "subdir1_2/subdir2",
                  "subdir1_3",
              ]
          ],
      )
      self.assertEqual(dir_path_str, all_dirs[0])
      self.assertLess(
          all_dirs.index(file_io.join(dir_path_str, "subdir1_2")),
          all_dirs.index(
              file_io.join(dir_path_str, "subdir1_2/subdir2")
          ),
      )
      self.assertItemsEqual(all_subdirs[1:5], [[], ["subdir2"], [], []])
      self.assertItemsEqual(
          all_subdirs[0], ["subdir1_1", "subdir1_2", "subdir1_3"]
      )
      self.assertItemsEqual(
          all_files, [["file1.txt"], ["file2.txt"], [], [], []]
      )
      self.assertLess(
          all_files.index(["file1.txt"]), all_files.index(["file2.txt"])
      )
  
imports: import os
  import unittest
  from tensorflow.python.framework import errors
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.platform import test
  from tensorflow.python.platform import gfile
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 28 for calling the OSSFSTest obj's underlying member method code with example usage: obj.test_walk_in_order() without return types