code: def test_gamma_soft_dtw():
      for be in backends:
          for array_type in array_types:
              dataset = cast(
                  [[1, 2, 2, 3], [1.0, 2.0, 3.0, 4.0]], array_type
              )
              gamma = tslearn.metrics.gamma_soft_dtw(
                  dataset=dataset, n_samples=200, random_state=0, be=be
              )
              np.testing.assert_allclose(gamma, 8.0)
              backend = instantiate_backend(be, array_type)
              assert backend.belongs_to_backend(gamma)
  
imports: import platform
  import sys
  import numpy
  import pytest
  import tslearn.clustering
  import tslearn.metrics
  from scipy.spatial.distance import cdist
  from tslearn.backend.backend import Backend, cast, instantiate_backend
  from tslearn.metrics.dtw_variants import dtw_path
  from tslearn.utils import to_time_series
label_desc: Use image node_id 12 for calling a global function with example usage: test_gamma_soft_dtw() without return types