code: def test_pad_arrays_axis(axis: int, is_right_pad: bool):
      arrays = [d["target"] for d in list(iter(get_dataset()))]
      if axis == 0:
          arrays = [x.T for x in arrays]
  
      padded_arrays = _pad_arrays(
          arrays, axis, is_right_pad=is_right_pad
      )
  
      assert all(a.shape[axis] == 8 for a in padded_arrays)
      assert all(a.shape[1 - axis] == 2 for a in padded_arrays)
  
imports: import itertools
  from functools import partial
  from typing import Iterable
  import numpy
  from pandas.tseries.frequencies import to_offset
  import pytest
  from gluonts.dataset.common import Dataset
  from gluonts.dataset.loader import DataBatch, InferenceDataLoader, TrainDataLoader
  from gluonts.mx.batchify import _pad_arrays, batchify, stack
  from gluonts.testutil.dummy_datasets import get_dataset
  from gluonts.transform import ContinuousTimeInstanceSplitter, ContinuousTimeUniformSampler, ContinuousTimePredictionSampler
label_desc: Use image node_id 10 for calling a global function with example usage: test_pad_arrays_axis(axis, is_right_pad) without return types