code: def test_ts_methods_with_static_covariates(self):
      ts = linear_timeseries(
          length=10, start_value=1.0, end_value=2.0
      ).astype("float64")
      static_covs = pd.Series([0, 1], index=["st1", "st2"]).astype(int)
      ts = ts.with_static_covariates(static_covs)
  
      assert ts.static_covariates.dtypes[0] == "float64"
      ts = ts.astype("float32")
      assert ts.static_covariates.dtypes[0] == "float32"
  
      ts_stoch = ts.from_times_and_values(
          times=ts.time_index,
          values=np.random.randint(low=0, high=10, size=(10, 1, 3)),
          static_covariates=static_covs,
      )
      assert ts_stoch.static_covariates.index.equals(
          ts_stoch.components
      )
  
      self.helper_test_cov_transfer(ts, ts.with_values(ts.all_values()))
      self.helper_test_cov_transfer(
          ts,
          ts.with_columns_renamed(
              ts.components.tolist(), ts.components.tolist()
          ),
      )
      self.helper_test_cov_transfer(ts, ts.copy())
      self.helper_test_cov_transfer(ts, ts.mean())
      self.helper_test_cov_transfer(ts, ts.median())
      self.helper_test_cov_transfer(ts, ts.sum())
      self.helper_test_cov_transfer(ts, ts.min())
      self.helper_test_cov_transfer(ts, ts.max())
      self.helper_test_cov_transfer(ts, ts.head())
      self.helper_test_cov_transfer(ts, ts.tail())
      self.helper_test_cov_transfer(ts, ts.split_after(0.5)[0])
      self.helper_test_cov_transfer(ts, ts.split_after(0.5)[1])
      self.helper_test_cov_transfer(ts, ts.split_before(0.5)[0])
      self.helper_test_cov_transfer(ts, ts.split_before(0.5)[1])
      self.helper_test_cov_transfer(ts, ts.drop_before(0.5))
      self.helper_test_cov_transfer(ts, ts.drop_after(0.5))
      self.helper_test_cov_transfer(
          ts,
          ts.slice(ts.start_time() + ts.freq, ts.end_time() - ts.freq),
      )
      self.helper_test_cov_transfer(
          ts, ts.slice_n_points_after(ts.start_time(), 5)
      )
      self.helper_test_cov_transfer(
          ts, ts.slice_n_points_before(ts.end_time(), 5)
      )
      self.helper_test_cov_transfer(ts, ts.slice_intersect(ts[2:]))
      self.helper_test_cov_transfer(ts, ts.strip())
      self.helper_test_cov_transfer(ts, ts.longest_contiguous_slice())
      self.helper_test_cov_transfer(ts, ts.rescale_with_value(2.0))
      self.helper_test_cov_transfer(ts, ts.shift(2.0))
      self.helper_test_cov_transfer(ts, ts.diff())
      self.helper_test_cov_transfer(ts, ts.univariate_component(0))
      self.helper_test_cov_transfer(ts, ts.map(lambda x: x + 1))
      self.helper_test_cov_transfer(ts, ts.resample(ts.freq))
      self.helper_test_cov_transfer(ts, ts[:5].append(ts[5:]))
      self.helper_test_cov_transfer(
          ts, ts.append_values(ts.all_values())
      )
  
      self.helper_test_cov_transfer(ts_stoch, ts_stoch.var())
      self.helper_test_cov_transfer(ts_stoch, ts_stoch.std())
      self.helper_test_cov_transfer(ts_stoch, ts_stoch.skew())
      self.helper_test_cov_transfer(ts_stoch, ts_stoch.kurtosis())
  
      # will append "_quantile" to component names
      self.helper_test_cov_transfer_values(
          ts_stoch, ts_stoch.quantile_timeseries()
      )
      self.helper_test_cov_transfer_values(
          ts_stoch, ts_stoch.quantile(0.5)
      )
      # will change component names
      self.helper_test_cov_transfer_values(
          ts, ts.add_datetime_attribute("hour")
      )
      self.helper_test_cov_transfer_values(ts, ts.add_holidays("US"))
  
imports: import copy
  import os
  import numpy
  import pandas
  import pytest
  from darts import TimeSeries, concatenate
  from darts.dataprocessing.transformers import BoxCox, Scaler
  from darts.timeseries import DEFAULT_GLOBAL_STATIC_COV_NAME, STATIC_COV_TAG
  from darts.utils.timeseries_generation import generate_index, linear_timeseries
label_desc: Use image node_id 14 for calling the TestTimeSeriesStaticCovariate obj's underlying member method code with example usage: obj.test_ts_methods_with_static_covariates() without return types