def get_dims(*arrays):
    """ find all dimensions from a variable list of arrays (or any object with `axes` attribute)
    Note: not in public API, but used by other modules
    """
    dims = []
    for o in arrays:
        for ax in o.axes:
            if ax.name not in dims:
                dims.append(ax.name)
    return dims
