code: def check_experiment_equality(exp, new_exp):
      for key, value in exp.variables.items():
          if key == "memory":
              continue
          # Reset memory as it will never be equal
          if key == "pipeline":
              value.memory = None
              new_exp.variables[key].memory = None
          try:
              assert value == new_exp.variables[key]
          except Exception:
              # For numpy arrays
              assert joblib.hash(value) == joblib.hash(
                  new_exp.variables[key]
              )
  
file_path: pycaret/tests/test_persistence_experiment.py
imports: import os
  import joblib
  import pytest
  import pycaret.anomaly
  import pycaret.classification
  import pycaret.clustering
  import pycaret.datasets
  import pycaret.regression
  import pycaret.time_series
  from pycaret.anomaly import AnomalyExperiment
  from pycaret.classification import ClassificationExperiment
  from pycaret.clustering import ClusteringExperiment
  from pycaret.regression import RegressionExperiment
  from pycaret.time_series import TSForecastingExperiment
label_desc: Use image node_id 1 for calling a global function with example usage: check_experiment_equality(exp, new_exp) without return types