code: def test_euclidean_barycenter():
      n, sz, d = 15, 10, 3
      rng = np.random.RandomState(0)
      time_series = rng.randn(n, sz, d)
      bar = tslearn.barycenters.euclidean_barycenter(time_series)
      np.testing.assert_allclose(bar, time_series.mean(axis=0))
  
      weights = rng.rand(
          n,
      )
      weights /= np.sum(weights)
      bar = tslearn.barycenters.euclidean_barycenter(
          time_series, weights=weights
      )
      np.testing.assert_allclose(
          bar, np.average(time_series, axis=0, weights=weights)
      )
  
imports: import numpy
  import tslearn.barycenters
label_desc: Use image node_id 2 for calling a global function with example usage: test_euclidean_barycenter() without return types