code: def test_translate():
      input_data = {"a": np.arange(100).reshape(20, 5)}
  
      t = Translator.parse(b="a.T[0]")
      b = t(input_data)["b"]
  
      assert np.array_equal(b, np.arange(0, 100, 5))
  
imports: import numpy
  from gluonts.dataset.common import ListDataset
  from gluonts.dataset.schema import Translator
label_desc: Use image node_id 1 for calling a global function with example usage: test_translate() without return types