code: def test_gamma_value_svm():
      n, sz, d = 5, 10, 3
      rng = np.random.RandomState(0)
      time_series = rng.randn(n, sz, d)
      labels = rng.randint(low=0, high=2, size=n)
  
      gamma = 10.0
      for ModelClass in [TimeSeriesSVC, TimeSeriesSVR]:
          gak_model = ModelClass(kernel="gak", gamma=gamma)
          sklearn_X, _ = gak_model._preprocess_sklearn(
              time_series, labels, fit_time=True
          )
  
          cdist_mat = cdist_gak(time_series, sigma=np.sqrt(gamma / 2.0))
  
          np.testing.assert_allclose(sklearn_X, cdist_mat)
  
imports: import numpy
  from tslearn.metrics import cdist_gak
  from tslearn.svm import TimeSeriesSVC, TimeSeriesSVR
label_desc: Use image node_id 1 for calling a global function with example usage: test_gamma_value_svm() without return types