code: def test_fit(
      spark,
      similarity_type,
      timedecay_formula,
      train_test_dummy_timestamp,
      header,
  ):
      model = SARPlus(
          spark,
          **header,
          timedecay_formula=timedecay_formula,
          similarity_type=similarity_type,
      )
  
      trainset, testset = train_test_dummy_timestamp
  
      df = spark.createDataFrame(trainset)
      df.write.mode("overwrite").saveAsTable("trainset")
  
      df = spark.table("trainset")
  
      model.fit(df)
  
imports: import math
  from pathlib import Path
  import numpy
  import pandas
  from pyspark.sql import SparkSession
  import pytest
  from pandas.testing import assert_frame_equal
  from pysarplus import SARPlus, SARModel
label_desc: Use image node_id 11 for calling a global function with example usage: test_fit(spark, similarity_type, timedecay_formula, train_test_dummy_timestamp, header) without return types