class_docstr: Class for ResultCompiler
docstr: Get result object for formatter
  
  Returns:
      ClassificationResult object
code: def get_result_instance(self):
      """
      Get result object for formatter
  
      Returns:
          ClassificationResult object
      """
      if len(self.labels) == 2:
          result = BinaryClassificationResult()
          result.load_results_from_meta(
              evaluation_result={"test": self.metric_scores_}
          )
      else:
          result = MultiClassificationResult()
          result.load_results_from_meta(
              evaluation_result=self.metric_scores_
          )
      return result
  
file_path: contextual-ai/xai/model/evaluation/result_compiler.py
imports: from typing import List
  import numpy
  from sklearn.metrics import roc_auc_score, accuracy_score
  from sklearn.metrics.classification import precision_recall_fscore_support, confusion_matrix
  from xai.constants import METRIC_CM, METRIC_ACCURACY, METRIC_AUC, METRIC_F1, METRIC_RECALL, METRIC_PRECISION
  from xai.model.evaluation.binary_classification_result import BinaryClassificationResult
  from xai.model.evaluation.multi_classification_result import MultiClassificationResult
label_desc: Use image node_id 4 for calling the ResultCompiler obj's underlying member method code with example usage: obj.get_result_instance() and returns: result