What is the primary function of the SparkTrials class in Hyperopt, and under what circumstances should it be utilized? | Databricks Certified Machine Learning - Associate Quiz - LeetQuiz