message: Use `tempfile.mkdtemp` instead of `tempfile.mktemp` to create directories.
  The `tempfile.mktemp` function is [deprecated](https://docs.python.org/3/library/tempfile.html#tempfile.mktemp) due to [security issues](https://cwe.mitre.org/data/definitions/377.html).
  The switch is easy to do: just a name change
diff: @@ -151,8 +151,7 @@ class DebugTensorDatumTest(test_util.TensorFlowTestCase):
  class DebugDumpDirTest(test_util.TensorFlowTestCase):
  def setUp(self):
  - self._dump_root = tempfile.mktemp()
  - os.mkdir(self._dump_root)
  + self._dump_root = tempfile.mkdtemp()
  def tearDown(self):
  # Tear down temporary dump directory.
  @@ -183,7 +182,7 @@ class DebugDumpDirTest(test_util.TensorFlowTestCase):
  def testDebugDumpDir_nonexistentDumpRoot(self):
  with self.assertRaisesRegex(IOError, "does not exist"):
  - debug_data.DebugDumpDir(tempfile.mktemp() + "_foo")
  + debug_data.DebugDumpDir(tempfile.mkdtemp() + "_foo")
  def testDebugDumpDir_invalidFileNamingPattern(self):
  # File name with too few underscores should lead to an exception.
  