code: def test_illegal_type() -> None:
      checkpoint_config = {"type": 4}
      with pytest.raises(TypeError, match="must be a string"):
          env = test_util.get_dummy_env()
          tensorboard.build(
              env.det_cluster_id,
              env.det_experiment_id,
              env.det_trial_id,
              checkpoint_config,
              async_upload=False,
          )
  
file_path: determined/harness/tests/tensorboard/test_base.py
imports: import pathlib
  from unittest import mock
  import pytest
  from determined import tensorboard
  from tests.tensorboard import test_util
label_desc: Use image node_id 7 for calling a global function with example usage: test_illegal_type() without return types