code: def test_tsdataset_unscale_numpy(self):
      df = get_multi_id_ts_df()
      df_test = get_multi_id_ts_df()
  
      from sklearn.preprocessing import (
          StandardScaler,
          MaxAbsScaler,
          MinMaxScaler,
          RobustScaler,
      )
  
      scalers = [
          StandardScaler(),
          StandardScaler(with_mean=False),
          StandardScaler(with_std=False),
          MaxAbsScaler(),
          MinMaxScaler(),
          MinMaxScaler(feature_range=(1, 3)),
          RobustScaler(),
          RobustScaler(with_centering=False),
          RobustScaler(with_scaling=False),
          RobustScaler(quantile_range=(20, 80)),
      ]
  
      for scaler in scalers:
          tsdata = TSDataset.from_pandas(
              df,
              dt_col="datetime",
              target_col="value",
              extra_feature_col=["extra feature"],
              id_col="id",
          )
          tsdata_test = TSDataset.from_pandas(
              df_test,
              dt_col="datetime",
              target_col="value",
              extra_feature_col=["extra feature"],
              id_col="id",
          )
          tsdata.gen_dt_feature().scale(scaler).roll(
              lookback=5, horizon=4, id_sensitive=True
          )
          tsdata_test.gen_dt_feature().scale(scaler, fit=False).roll(
              lookback=5, horizon=4, id_sensitive=True
          )
  
          _, _ = tsdata.to_numpy()
          _, y_test = tsdata_test.to_numpy()
  
          pred = np.copy(y_test)  # sanity check
  
          unscaled_pred = tsdata.unscale_numpy(pred)
          unscaled_y_test = tsdata.unscale_numpy(y_test)
          tsdata_test.unscale().roll(
              lookback=5, horizon=4, id_sensitive=True
          )
          _, unscaled_y_test_reproduce = tsdata_test.to_numpy()
  
          assert_array_almost_equal(
              unscaled_pred, unscaled_y_test_reproduce
          )
          assert_array_almost_equal(
              unscaled_y_test, unscaled_y_test_reproduce
          )
  
          tsdata._check_basic_invariants()
  
imports: import pytest
  import numpy
  import pandas
  import random
  import tempfile
  import os
  import shutil
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
  from zoo.chronos.data import TSDataset
  from pandas.testing import assert_frame_equal
  from numpy.testing import assert_array_almost_equal
label_desc: Use image node_id 18 for calling the TestTSDataset obj's underlying member method code with example usage: obj.test_tsdataset_unscale_numpy() without return types