code: def build_sample_paths(sample):
      
      for path_name, path in sample.paths.items():
          print("{}: '{}'".format(path_name, path))
          base, ext = os.path.splitext(path)
          if ext:
              print("Skipping file-like: '[}'".format(path))
          elif not os.path.isdir(base):
              os.makedirs(base)
docs: Ensure existence of folders for a Sample.
  
      :param looper.models.Sample sample: Sample (or instance supporting get()
          that stores folders paths in a 'paths' key, in which the value is a
          mapping from path name to actual folder path)