code: public static void ensureLocationExists(
        DatasetDescriptor descriptor, Configuration conf) {
      Preconditions.checkNotNull(descriptor.getLocation(),
          "Cannot get FileSystem for a descriptor with no location");
  
      Path dataPath = new Path(descriptor.getLocation().toString());
      FileSystem fs = null;
  
      try {
        fs = dataPath.getFileSystem(conf);
      } catch (IOException e) {
        throw new DatasetIOException(
            "Cannot get FileSystem for descriptor: " + descriptor, e);
      }
  
      try {
        if (!fs.exists(dataPath)) {
          fs.mkdirs(dataPath);
        }
      } catch (IOException e) {
        throw new DatasetIOException("Cannot access data location", e);
      }
    }
docs: Creates, if necessary, the given the location for {@code descriptor}.
  
  @param conf A Configuration
  @param descriptor A DatasetDescriptor
  @throws DatasetIOException
  @since 0.13.0