def ParseIPAddrs(self, addrs_data):
    addrs = addrs_data.strip().split()
    reg = re.compile(r'^([0-9]+.){3}[0-9]+$')
    for addr in addrs:
      if not reg.search(addr):
        raise InputError('Failed to parse ip addr: "%s"' % addr)
    return addrs
Test observation of Bernoulli node
dataset/ETHPy150Open GoogleCloudPlatform/compute-image-packages/google-daemon/usr/share/google/google_daemon/address_manager.py/AddressManager.ParseIPAddrs--crossover with--dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/tests/test_binomial.py/TestBinomial.test_observed