code: def parse_file_samplerate(soundfile):
      samplerate = None
      # parse samplerate
      re_sr = re.compile(r"/([0-9]{4,})Hz_.*")
      match_samplerate = re_sr.findall(soundfile)
      if match_samplerate:
          samplerate = int(match_samplerate[0])
      else:
          import warnings
  
          warnings.warn(
              UserWarning(
                  "could not parse samplerate for {:s}".format(
                      soundfile
                  )
              )
          )
      return samplerate
  
file_path: aubio/python/tests/utils.py
imports: import os
  import re
  import glob
  import struct
  import numpy
  from tempfile import mkstemp
label_desc: Use image node_id 11 for calling a global function with example usage: parse_file_samplerate(soundfile) and returns: samplerate