def METHOD_NAME(shape, names="abcdefg"):
    # Construct column major appropriate ArrayStructures for the given
    # shape.
    running_product = 1
    array_structures = {}
    for name, dim_len in zip(names, shape):
        array_structures[name] = ArrayStructure(
            running_product, np.arange(dim_len)
        )
        running_product *= dim_len
    return array_structures