code: def test_scalers_with_static_covariates(self):
      ts = linear_timeseries(start_value=1.0, end_value=2.0, length=10)
      static_covs = pd.Series([0.0, 2.0], index=["st1", "st2"])
      ts = ts.with_static_covariates(static_covs)
  
      for scaler_cls in [Scaler, BoxCox]:
          scaler = scaler_cls()
          ts_scaled = scaler.fit_transform(ts)
          assert ts_scaled.static_covariates.equals(
              ts.static_covariates
          )
  
          ts_inv = scaler.inverse_transform(ts_scaled)
          assert ts_inv.static_covariates.equals(ts.static_covariates)
  
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 10 for calling the TestTimeSeriesStaticCovariate obj's underlying member method code with example usage: obj.test_scalers_with_static_covariates() without return types