docs: def _stamped_deps(stamp_directory, func, dependencies, *args, **kwargs):
      """Run func, assumed to have dependencies as its first argument."""
      if not isinstance(dependencies, list):
          jobstamps_dependencies = [dependencies]
      else:
          jobstamps_dependencies = dependencies
  
      kwargs.update({
          "jobstamps_cache_output_directory": stamp_directory,
          "jobstamps_dependencies": jobstamps_dependencies
      })
      return jobstamp.run(func, dependencies, *args, **kwargs)