code: def reverse(a: Union[torch.Tensor, ComplexTensor], dim=0):
      if isinstance(a, ComplexTensor):
          return FC.reverse(a, dim=dim)
      else:
          return torch.flip(a, dims=(dim,))
  
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 13 for calling a global function with example usage: reverse(a, dim) and returns: FC, torch