class_docstr: Tests just-in-time cpp extensions.
  Don't confuse this with the PyTorch JIT (aka TorchScript).
code: def test_set_default_type_also_changes_aten_default_type(self):
      module = torch.utils.cpp_extension.load_inline(
          name="test_set_default_type",
          cpp_sources="torch::Tensor get() { return torch::empty({}); }",
          functions="get",
          verbose=True,
      )
  
      initial_default = torch.get_default_dtype()
      try:
          self.assertEqual(module.get().dtype, initial_default)
          torch.set_default_dtype(torch.float64)
          self.assertEqual(module.get().dtype, torch.float64)
          torch.set_default_dtype(torch.float32)
          self.assertEqual(module.get().dtype, torch.float32)
          torch.set_default_dtype(torch.float16)
          self.assertEqual(module.get().dtype, torch.float16)
      finally:
          torch.set_default_dtype(initial_default)
  
imports: import os
  import shutil
  import sys
  import unittest
  import warnings
  import re
  import tempfile
  import subprocess
  import glob
  import torch.testing._internal.common_utils
  from torch.testing._internal.common_cuda import TEST_CUDNN, TEST_CUDA
  import torch
  import torch.backends.cudnn
  import torch.utils.cpp_extension
  from torch.utils.cpp_extension import CUDA_HOME, ROCM_HOME
  from torch.testing._internal.common_utils import gradcheck
  import torch.multiprocessing
  from torch.utils.cpp_extension import _TORCH_PATH, remove_extension_h_precompiler_headers, get_cxx_compiler, check_compiler_is_gcc
label_desc: Use image node_id 25 for calling the TestCppExtensionJIT obj's underlying member method code with example usage: obj.test_set_default_type_also_changes_aten_default_type() without return types