code: def assert_compare(expected_id, expected_score, actual_prediction):
      assert expected_id == actual_prediction.id
      assert math.isclose(
          expected_score,
          actual_prediction.score,
          rel_tol=1e-3,
          abs_tol=1e-3,
      )
  
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 1 for calling a global function with example usage: assert_compare(expected_id, expected_score, actual_prediction) without return types