class_docstr: Mixin to provide consistent way to define device/dtype aware TestCase
class_docstr_tok: ["Mixin","to","provide","consistent","way","to","define","device\/dtype","aware","TestCase"]
code: def complex_dtype(self):
      if self.dtype in ["float32", "float", torch.float, torch.float32]:
          return torch.cfloat
      if self.dtype in [
          "float64",
          "double",
          torch.double,
          torch.float64,
      ]:
          return torch.cdouble
      raise ValueError(
          f"No corresponding complex dtype for {self.dtype}"
      )
  
imports: import functools
  import os.path
  import shutil
  import subprocess
  import sys
  import tempfile
  import time
  import unittest
  from itertools import zip_longest
  import torch
  import torchaudio
  import torio
  from torch.testing._internal.common_utils import TestCase
  from torchaudio._internal.module_utils import eval_env, is_module_available
  from torchaudio.utils.ffmpeg_utils import get_video_decoders, get_video_encoders
label_desc: Use image node_id 2 for calling the TestBaseMixin obj's underlying member method code with example usage: obj.complex_dtype() and returns: torch, torch