code: def test_metric(self):
      metric1 = dtw_metric(self.series1, self.series2, metric=mae)
      metric2 = dtw_metric(self.series1, self.series2, metric=mape)
  
      assert 0.5 > metric1
      assert 5 > metric2
  
imports: import matplotlib.pyplot
  import numpy
  import pandas
  import pytest
  from darts.dataprocessing import dtw
  from darts.metrics import dtw_metric, mae, mape
  from darts.timeseries import TimeSeries
  from darts.utils import timeseries_generation
label_desc: Use image node_id 6 for calling the TestDynamicTimeWarping obj's underlying member method code with example usage: obj.test_metric() without return types