code: def files_digest(paths, root_dir):
      import hashlib
  
      md5 = hashlib.md5()
      for path in paths:
          normpath = _path_for_digest(path)
          md5.update(_encode_file_path_for_digest(normpath))
          md5.update(b"\x00")
          _apply_digest_file_bytes(os.path.join(root_dir, path), md5)
          md5.update(b"\x00")
      return md5.hexdigest()
  
imports: import fnmatch
  import glob
  import logging
  import os
  import re
  import shutil
  from guild import util
label_desc: Use image node_id 22 for calling a global function with example usage: files_digest(paths, root_dir) and returns: md5