class_docstr: TensorBoard base test class.
  
  This class can lazily create a temporary directory for tests to use.
class_docstr_tok: ["TensorBoard","base","test","class",".","This","class","can","lazily","create","a","temporary","directory","for","tests","to","use","."]
docstr: Returns a unique temporary directory for the test to use.
  
  If you call this method multiple times during in a test, it will return the
  same folder. However, across different runs the directories will be
  different. This will ensure that across different runs tests will not be
  able to pollute each others environment.
  If you need multiple unique directories within a single test, you should
  use `self.create_tempdir()`, provided by `absltest.TestCase`.
    tempfile.mkdtemp(dir=self.get_temp_dir()):
  
  Returns:
    string, the path to the unique temporary directory created for this test.
docstr_tok: ["Returns","a","unique","temporary","directory","for","the","test","to","use",".","If","you","call","this","method","multiple","times","during","in","a","test",",","it","will","return","the","same","folder",".","However",",","across","different","runs","the","directories","will","be","different",".","This","will","ensure","that","across","different","runs","tests","will","not","be","able","to","pollute","each","others","environment",".","If","you","need","multiple","unique","directories","within","a","single","test",",","you","should","use","`","self.create_tempdir","(",")","`",",","provided","by","`","absltest.TestCase","`",".","tempfile.mkdtemp","(","dir=self.get_temp_dir","(",")",")",":","Returns",":","string",",","the","path","to","the","unique","temporary","directory","created","for","this","test","."]
code: def get_temp_dir(self):
      """Returns a unique temporary directory for the test to use.
  
      If you call this method multiple times during in a test, it will return the
      same folder. However, across different runs the directories will be
      different. This will ensure that across different runs tests will not be
      able to pollute each others environment.
      If you need multiple unique directories within a single test, you should
      use `self.create_tempdir()`, provided by `absltest.TestCase`.
        tempfile.mkdtemp(dir=self.get_temp_dir()):
  
      Returns:
        string, the path to the unique temporary directory created for this test.
      """
      if not self._tempdir:
          self._tempdir = self.create_tempdir().full_path
      return self._tempdir
  
imports: from absl.testing import absltest
label_desc: Use image node_id 2 for calling the TestCase obj's underlying member method code with example usage: obj.get_temp_dir() and returns: self