code: def get_condition_test_performance_greater_than(
      min_score: float,
  ) -> t.Callable[[pd.DataFrame], ConditionResult]:
      """Add condition - test metric scores are greater than the threshold.
  
      Parameters
      ----------
      min_score : float
          Minimum score to pass the check.
  
      Returns
      -------
      Callable
          the condition function
      """
  
      def condition(check_result: pd.DataFrame):
          test_scores = check_result.loc[
              check_result["Dataset"] == "Test"
          ]
          not_passed_test = test_scores.loc[
              test_scores["Value"] <= min_score
          ]
          is_passed = len(not_passed_test) == 0
          has_classes = check_result.get("Class") is not None
          details = ""
          if not is_passed:
              details += f"Found {len(not_passed_test)} scores below threshold.\n"
          min_metric = test_scores.loc[test_scores["Value"].idxmin()]
  
          details += (
              f'Found minimum score for {min_metric["Metric"]} metric of value '
              f'{format_number(min_metric["Value"])}'
          )
  
          if has_classes:
              details += f' for class {min_metric.get("Class Name", min_metric["Class"])}.'
  
          return ConditionResult(
              ConditionCategory.PASS
              if is_passed
              else ConditionCategory.FAIL,
              details,
          )
  
      return condition
  
file_path: deepchecks/deepchecks/core/check_utils/class_performance_utils.py
imports: import typing
  import numpy
  import pandas
  from deepchecks.core import ConditionResult
  from deepchecks.core.condition import ConditionCategory
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.utils.dict_funcs import get_dict_entry_by_value
  from deepchecks.utils.strings import format_number, format_percent
label_desc: Use image node_id 1 for calling a global function with example usage: get_condition_test_performance_greater_than(min_score) and returns: condition, ConditionResult