code: def count_files_in_directory(samples_dir):
      total_files = 0
      for f in os.walk(samples_dir):
          if len(f[2]):
              for each in f[2]:
                  file_path = os.path.join(f[0], each)
                  if file_path:
                      total_files += 1
      return total_files
  
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 10 for calling a global function with example usage: count_files_in_directory(samples_dir) and returns: total_files