code: def to_float(c):
      if not isinstance(c, ComplexTensor) and torch.is_complex(c):
          return c.to(dtype=torch.complex64)
      else:
          return c.float()
  
file_path: espnet/espnet2/enh/layers/complex_utils.py
imports: from typing import Sequence, Tuple, Union
  import torch
  from torch_complex import functional
  from torch_complex.tensor import ComplexTensor
label_desc: Use image node_id 6 for calling a global function with example usage: to_float(c) and returns: c, c