def get_bound(atom, bound=None):
    """
    Return appropriate `bound` parameter.
    """
    if bound is None:
        bound = atom.bound
    if bound is None:
        raise ValueError('either atom must be in bound '
                         + 'mode or a keyword "bound" '
                         + 'argument must be supplied')
    return bound