Changed the default value of metric_kwds from None to {}.