code: def test_dataset_translate():
      input_data = {
          "sales": np.random.random(100),
          "start": "2020",
          "price": np.full(100, 1.5),
          "temperature": np.full(100, 23),
      }
  
      for entry in ListDataset(
          [input_data],
          freq="D",
          translate={
              "target": "sales",
              "feat_dynamic_real": "[price, temperature]",
              "feat_dynamic_real_T": "[price, temperature].transpose()",
          },
      ):
          assert entry["target"].shape == (100,)
          assert entry["feat_dynamic_real"].shape == (2, 100)
          assert entry["feat_dynamic_real_T"].shape == (100, 2)
  
imports: import numpy
  from gluonts.dataset.common import ListDataset
  from gluonts.dataset.schema import Translator
label_desc: Use image node_id 2 for calling a global function with example usage: test_dataset_translate() without return types