code: def sprinkler_bbn():
      """Sprinkler BBN built with build_bbn."""
  
      def f_rain(rain):
          if rain is True:
              return 0.2
          return 0.8
  
      def f_sprinkler(rain, sprinkler):
          sprinkler_dict = {
              (False, True): 0.4,
              (False, False): 0.6,
              (True, True): 0.01,
              (True, False): 0.99,
          }
          return sprinkler_dict[(rain, sprinkler)]
  
      def f_grass_wet(sprinkler, rain, grass_wet):
          table = {}
          table["fft"] = 0.0
          table["fff"] = 1.0
          table["ftt"] = 0.8
          table["ftf"] = 0.2
          table["tft"] = 0.9
          table["tff"] = 0.1
          table["ttt"] = 0.99
          table["ttf"] = 0.01
          return table[make_key(sprinkler, rain, grass_wet)]
  
      return build_bbn(f_rain, f_sprinkler, f_grass_wet)
  
file_path: causalnex/tests/ebaybbn/conftest.py
imports: import pytest
  from causalnex.ebaybbn import BBN, Node, build_bbn, build_join_tree, combinations, make_moralized_copy, make_undirected_copy
  from causalnex.ebaybbn.utils import make_key
label_desc: Use image node_id 2 for calling a global function with example usage: sprinkler_bbn() and returns: build_bbn, int, sprinkler_dict, table, int