def get_dims_from_shape(shape):
    """
        Transforms an mpnum shape into a chain tuple (only contains axis 0 dimensions of shape)
    :param shape: mpnum shape
    :return: tuple of axis 0 dimensions of shape
    """
    return tuple([dims[0] for dims in shape])