code: def compare_hashes(
      target_hashes: Union[List[int], int],
      traced_hashes: Union[List[int], int],
      traced_results: Any,
  ) -> Union[SyftSuccess, SyftError]:
      if target_hashes == traced_hashes:
          msg = "Code Verification passed with matching hashes! Congratulations, and thank you for supporting PySyft!"
          return SyftSuccess(message=msg)
      else:
          msg = (
              f"Hashes do not match! Target hashes were: {target_hashes} but Traced hashes were: {traced_results}. "
              f"Please try checking the logs."
          )
          return SyftError(message=msg)
  
file_path: PySyft/packages/syft/src/syft/service/action/verification.py
imports: from typing import Any
  from typing import Callable
  from typing import List
  from typing import Union
  import numpy
  import pandas
  from ..response import SyftError
  from ..response import SyftResponseMessage
  from ..response import SyftSuccess
  from .action_object import ActionObject
label_desc: Use image node_id 2 for calling a global function with example usage: compare_hashes(target_hashes, traced_hashes, traced_results) and returns: SyftSuccess, SyftError