def pytest_funcarg__monty_bbn(request):
    def f_prize_door(prize_door):
        return 1.0 / 3


    def f_guest_door(guest_door):
        return 1.0 / 3


    def f_monty_door(prize_door, guest_door, monty_door):
        if prize_door == guest_door:
            if prize_door == monty_door:
                return 0
            else:
                return 0.5
        elif prize_door == monty_door:
            return 0
        elif guest_door == monty_door:
            return 0
        return 1

    g = build_bbn(
        f_prize_door,
        f_guest_door,
        f_monty_door,
        domains=dict(
            prize_door=['A', 'B', 'C'],
            guest_door=['A', 'B', 'C'],
            monty_door=['A', 'B', 'C']))
    return g
dataset/ETHPy150Open eBay/bayesian-belief-networks/bayesian/test/test_bbn.py/pytest_funcarg__monty_bbn/original