code: def test_out_dtype_wrong_output(self) -> None:
      def multiple_out(x):
          return out_dtype(
              torch.ops.aten.topk.default, torch.int32, x, 5
          )
  
      inp = (torch.randn(10),)
  
      with self.assertRaisesRegex(
          ValueError,
          "out_dtype's can only apply to ops that return a single tensor",
      ):
          multiple_out(*inp)
  
      def singleton_list_out(x):
          return out_dtype(
              torch.ops.aten.split_copy.Tensor, torch.int32, x, 10
          )
  
      with self.assertRaisesRegex(
          ValueError,
          "out_dtype's can only apply to ops that return a single tensor",
      ):
          singleton_list_out(*inp)
  
imports: import unittest
  import torch
  import torch._dynamo
  import torch._inductor
  import torch._inductor.decomposition
  import torch._export
  from torch._higher_order_ops.out_dtype import out_dtype
  from torch.fx.experimental.proxy_tensor import make_fx
  from torch.testing._internal.common_utils import run_tests, TestCase, IS_WINDOWS, TEST_WITH_ROCM, IS_FBCODE, IS_REMOTE_GPU, TEST_CUDA
  from torch.testing._internal.common_quantization import skipIfNoDynamoSupport
  from torch.testing import FileCheck
  from torch.testing._internal.common_cuda import SM80OrLater, _get_torch_cuda_version
label_desc: Use image node_id 12 for calling the TestOutDtypeOp obj's underlying member method code with example usage: obj.test_out_dtype_wrong_output() and returns: out_dtype, out_dtype