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","`","."]
code: def test_write_info_file_rejects_bad_types(self):
      # The particulars of validation are tested more thoroughly in
      # `TensorBoardInfoTest` above.
      bad_time = datetime.datetime.fromtimestamp(1549061116)
      info = dataclasses.replace(_make_info(), start_time=bad_time)
      with self.assertRaisesRegex(
          ValueError,
          r"expected 'start_time' of type.*int.*, but found: datetime\.",
      ):
          manager.write_info_file(info)
      self.assertEqual(self._list_info_dir(), [])
  
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 8 for calling the TensorBoardInfoIoTest obj's underlying member method code with example usage: obj.test_write_info_file_rejects_bad_types() without return types