code: def package_files(directory: str):
      """
      Traverses target directory recursivery adding file paths to a list.
      Original solution found at:
  
          * https://stackoverflow.com/questions/27664504/\
              how-to-add-package-data-recursively-in-python-setup-py
  
      Parameters
      ----------
      directory: str
          Target directory to traverse.
  
      Returns
      -------
      paths: list
          List of file paths.
      
      """
      paths = []
      for path, _, files in os.walk(directory):
          for file in files:
              paths.append(os.path.join("..", path, file))
  
      return paths
  
imports: import os
  from setuptools import setup
  from io import open
label_desc: Use image node_id 1 for calling a global function with example usage: package_files(directory) and returns: paths