class_docstr: Tests for `write_info_file`, `remove_info_file`, and `get_all`.
class_docstr_tok: ["Tests","for","`","write_info_file","`",",","`","remove_info_file","`",",","and","`","get_all","`","."]
docstr: Test that the TensorBoardInfo directory is world-accessible.
  
  Regression test for issue #2010:
  <https://github.com/tensorflow/tensorboard/issues/2010>
docstr_tok: ["Test","that","the","TensorBoardInfo","directory","is","world-accessible",".","Regression","test","for","issue","#","2010",":","<","https",":","\/\/github.com\/tensorflow\/tensorboard\/issues\/2010",">"]
code: def test_directory_world_accessible(self):
      """Test that the TensorBoardInfo directory is world-accessible.
  
      Regression test for issue #2010:
      <https://github.com/tensorflow/tensorboard/issues/2010>
      """
      if os.name == "nt":
          self.skipTest("Windows does not use POSIX-style permissions.")
      os.rmdir(self.info_dir)
      # The default umask is typically 0o022, in which case this test is
      # nontrivial. In the unlikely case that the umask is 0o000, we'll
      # still be covered by the "restrictive umask" test case below.
      manager.write_info_file(_make_info())
      self.assertMode(self.info_dir, 0o777)
      self.assertEqual(self._list_info_dir(), ["pid-76540.info"])
  
imports: import dataclasses
  import datetime
  import errno
  import json
  import os
  import re
  import tempfile
  from unittest import mock
  from tensorboard import manager
  from tensorboard import test
  from tensorboard import version
  from tensorboard.util import tb_logging
label_desc: Use image node_id 5 for calling the TensorBoardInfoIoTest obj's underlying member method code with example usage: obj.test_directory_world_accessible() without return types