code: def check_path(path, otherwise):
      
  
      if os.path.exists(path):
          print("WARNING: Path '%s' already exists; skipping" % path)
      else:
          otherwise(path)
docs: Checks if a path exists. If it does, print a warning message; if not,
      execute the `otherwise` callback argument.