def _concatenate2(arrays, axes=[]):
    if isinstance(arrays, Iterator):
        arrays = list(arrays)
    if not isinstance(arrays, (list, tuple)):
        return arrays
    if len(axes) > 1:
        arrays = [_concatenate2(a, axes=axes[1:]) for a in arrays]
    return np.concatenate(arrays, axis=axes[0])
A trick to cause the ``hasattr`` builtin-fn to return False for
dataset/ETHPy150Open dask/dask/dask/array/core.py/_concatenate2--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/types/newstr.py/newstr.__getattribute__