def sample_n_shape_converter(size):
    """Convert `size` to the proper format for performing sample_n.
    """
    if size is None:
        return size
    if size == ():
        size = None
    else:
        if isinstance(size, int):
            size = (size,)
        size = (-2,) + size
    return size