code: def test_soft_f1(soft_input_values):
      y_true = soft_input_values["y_true"]
      y_pred = soft_input_values["y_pred"]
      expected_soft_f1 = soft_input_values["expected_soft_f1"]
  
      # Tests list input.
      soft_f1 = [
          soft_f1_score(y_true=y_true, y_pred=y_pred, window=window)
          for window in [0, 1, 2]
      ]
      assert soft_f1 == expected_soft_f1
  
      # Tests numpy array input.
      soft_f1 = [
          soft_f1_score(
              y_true=np.array(y_true),
              y_pred=np.array(y_pred),
              window=window,
          )
          for window in [0, 1, 2]
      ]
      assert soft_f1 == expected_soft_f1
  
      # Tests pandas Series input.
      soft_f1 = [
          soft_f1_score(
              y_true=pd.Series(y_true),
              y_pred=pd.Series(y_pred),
              window=window,
          )
          for window in [0, 1, 2]
      ]
      assert soft_f1 == expected_soft_f1
  
      # Tests pandas DataFrame input.
      soft_f1 = [
          soft_f1_score(
              y_true=pd.DataFrame(y_true),
              y_pred=pd.DataFrame(y_pred),
              window=window,
          )
          for window in [0, 1, 2]
      ]
      assert soft_f1 == expected_soft_f1
  
imports: import numpy
  import pandas
  import pytest
  from greykite.detection.common.ad_evaluation import confusion_matrix
  from greykite.detection.common.ad_evaluation import f1_score
  from greykite.detection.common.ad_evaluation import informedness_statistic
  from greykite.detection.common.ad_evaluation import matthews_corrcoef
  from greykite.detection.common.ad_evaluation import precision_score
  from greykite.detection.common.ad_evaluation import range_based_precision_score
  from greykite.detection.common.ad_evaluation import range_based_recall_score
  from greykite.detection.common.ad_evaluation import recall_score
  from greykite.detection.common.ad_evaluation import soft_f1_score
  from greykite.detection.common.ad_evaluation import soft_precision_score
  from greykite.detection.common.ad_evaluation import soft_recall_score
label_desc: Use image node_id 12 for calling a global function with example usage: test_soft_f1(soft_input_values) without return types