function normalizeStatsOptions(statsOptions) {
    if (typeof statsOptions === "undefined") {
      statsOptions = { preset: "normal" };
    } else if (typeof statsOptions === "boolean") {
      statsOptions = statsOptions ? { preset: "normal" } : { preset: "none" };
    } else if (typeof statsOptions === "string") {
      statsOptions = { preset: statsOptions };
    }

    return statsOptions;
  }
@param {StatsOptions} statsOptions stats options
@returns {StatsObjectOptions} object stats options