code: def get_max_length_stft_based(
      length_in_samp,
      window_length_in_s,
      window_shift_in_s,
      sampling_rate_in_hz,
  ):
      window_length_in_samp = get_length_in_samp(
          window_length_in_s, sampling_rate_in_hz
      )
      window_shift_in_samp = get_length_in_samp(
          window_shift_in_s, sampling_rate_in_hz
      )
      return get_num_output_padded_to_fit_input(
          length_in_samp, window_length_in_samp, window_shift_in_samp
      )
  
imports: import functools
  import logging
  from io import BytesIO
  from typing import Any, List, Optional, Union
  import torch
  import torch.nn.functional
  import torchaudio
  from packaging import version
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.constants import DEFAULT_AUDIO_TENSOR_LENGTH
  from ludwig.utils.types import TorchAudioTuple
label_desc: Use image node_id 24 for calling a global function with example usage: get_max_length_stft_based(length_in_samp, window_length_in_s, window_shift_in_s, sampling_rate_in_hz) and returns: get_num_output_padded_to_fit_input