code: def _inner_load(f):
      n = None
      for as_series in (True, False):
          x = f(as_series=as_series)
  
          # ensure shape is same for both
          if n is None:
              n = x.shape[0]
          else:
              assert x.shape[0] == n
  
          if as_series:
              assert isinstance(x, pd.Series)
          else:
              assert isinstance(x, np.ndarray)
  
file_path: pmdarima/pmdarima/datasets/tests/test_load_datasets.py
imports: from pmdarima.datasets import load_heartrate, load_lynx, load_wineind, load_woolyrnq, load_ausbeer, load_austres, load_gasoline, load_airpassengers, load_taylor, load_msft, load_sunspots, _base
  import numpy
  import pandas
  import os
  import shutil
  from numpy.testing import assert_array_equal
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: _inner_load(f) without return types