code: def test_one2one_s2s_w_name(model):
      """
      if a one-to-one model is applied to a Series, it should keep the Series
      name unchanged
      """
      s_name = pd.Series(
          np.arange(100),
          index=pd.date_range(start="2017-1-1", periods=100, freq="D"),
          name="A",
      )
      if isinstance(model, _TrainableModel):
          result = model.fit_predict(s_name)
      else:
          result = model.predict(s_name)
      assert result.name == "A"
  
file_path: adtk/tests/test_series_name.py
imports: import sys
  import numpy
  import pandas
  import pytest
  from sklearn.cluster import KMeans
  from sklearn.linear_model import LinearRegression
  from sklearn.neighbors import LocalOutlierFactor
  import adtk.detector
  import adtk.transformer
  from adtk._base import _TrainableModel
  from adtk._detector_base import _NonTrainableUnivariateDetector, _TrainableMultivariateDetector, _TrainableUnivariateDetector
label_desc: Use image node_id 1 for calling a global function with example usage: test_one2one_s2s_w_name(model) without return types