code: def get_length_in_samp(
      sampling_rate_in_hz: Union[float, int],
      length_in_s: Union[float, int],
  ) -> int:
      return int(sampling_rate_in_hz * length_in_s)
  
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 6 for calling a global function with example usage: get_length_in_samp(sampling_rate_in_hz, length_in_s) and returns: int