code: def make_scratch_dirs(file_mapping, dry_run=True):
          
          scratch_dirs = {}
          for value in file_mapping.values():
              scratch_dirname = os.path.dirname(value)
              scratch_dirs[scratch_dirname] = True
          for scratch_dirname in scratch_dirs:
              if dry_run:
                  print("mkdir -f %s" % (scratch_dirname))
              else:
                  try:
                      os.makedirs(scratch_dirname)
                  except OSError:
                      pass
docs: Make any directories need in the scratch area