class_docstr: Decorator to patch torch.stft in PaSST.
class_docstr_tok: ["Decorator","to","patch","torch.stft","in","PaSST","."]
code: def __enter__(self):
      # return_complex is a mandatory parameter in latest torch versions
      # torch is throwing RuntimeErrors when not set
      torch.stft = partial(torch.stft, return_complex=False)
  
imports: import contextlib
  from functools import partial
  import logging
  import os
  import typing
  import torch
  import torchmetrics
  from ..data.audio_utils import convert_audio
label_desc: Use image node_id 2 for calling the _patch_passt_stft obj's underlying member method code with example usage: obj.__enter__() without return types