code: def recursive_mtime(path, newest=True):
      """Gets the newest/oldest mtime for all files in a directory."""
      if os.path.isfile(path):
          return mtime(path)
      current_extreme = None
      for dirname, dirnames, filenames in os.walk(path, topdown=False):
          for filename in filenames:
              mt = mtime(pjoin(dirname, filename))
              if newest:  # Put outside of loop?
                  if mt >= (current_extreme or mt):
                      current_extreme = mt
              elif mt <= (current_extreme or mt):
                  current_extreme = mt
      return current_extreme
  
imports: from collections import defaultdict
  from os.path import join
  import io
  import os
  import functools
  import pipes
  import re
  import shlex
  import subprocess
  import sys
  from setuptools import Command
  from setuptools.command.build_py import build_py
  from setuptools.command.sdist import sdist
  from distutils import log
  from setuptools.command.develop import develop
  from setuptools.command.bdist_egg import bdist_egg
label_desc: Use image node_id 11 for calling a global function with example usage: recursive_mtime(path, newest) and returns: current_extreme, mtime