def make_nd_array(*dims):
    """Create a multi-dimensional array with given dimensions.

    The multi-dimensional array is a nested list initialized with
    `None`s.

    """
    if dims:
        head, *tail = dims
        return [make_nd_array(*tail) for _ in range(head)]
    else:
        return None