docstr: Test that the hooks are constructed correctly.
docstr_tok: ["Test","that","the","hooks","are","constructed","correctly","."]
code: def test_constructors(self) -> None:
      """
      Test that the hooks are constructed correctly.
      """
      config = {"torchscript_folder": "/test/"}
      invalid_config = copy.deepcopy(config)
      invalid_config["torchscript_folder"] = 12
  
      self.constructor_test_helper(
          config=config,
          hook_type=TorchscriptHook,
          hook_registry_name="torchscript",
          invalid_configs=[invalid_config],
      )
  
file_path: ClassyVision/test/hooks_torchscript_hook_test.py
imports: import copy
  import os
  import shutil
  import tempfile
  import torch
  from classy_vision.hooks import TorchscriptHook
  from classy_vision.models import ResNet
  from classy_vision.tasks import build_task
  from test.generic.config_utils import get_test_task_config
  from test.generic.hook_test_utils import HookTestBase
label_desc: Use image node_id 3 for calling the TestTorchscriptHook obj's underlying member method code with example usage: obj.test_constructors() without return types