code: def _get_bits_per_sample(encoding: str, bits_per_sample: int) -> str:
      if m := re.search(r"PCM_\w(\d+)\w*", encoding):
          return int(m.group(1))
      elif encoding in ["PCM_ALAW", "PCM_MULAW"]:
          return 8
      return bits_per_sample
  
imports: import os
  import re
  import sys
  from typing import BinaryIO, Optional, Tuple, Union
  import torch
  import torchaudio
  from .backend import Backend
  from .common import AudioMetaData
label_desc: Use image node_id 12 for calling a global function with example usage: _get_bits_per_sample(encoding, bits_per_sample) and returns: bits_per_sample, int, int