code: def test_default_tensor_type(self):
      with self.assertWarnsRegex(
          DeprecationWarning,
          r"The function default_tensor_type has been deprecated in 1.1.0 "
          r"and will be removed in 2.0.0.",
      ):
          with default_tensor_type(torch.FloatTensor):
              torch.Tensor([0])
  
file_path: small-text/tests/unit/small_text/integrations/pytorch/utils/test_misc.py
imports: import unittest
  import pytest
  from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
label_desc: Use image node_id 1 for calling the MiscUtilsTest obj's underlying member method code with example usage: obj.test_default_tensor_type() without return types