code: def infer_family_test():
      families = dict(
          # family = list of links
          gaussian=["identity", "log", "inverse"],
          binomial=["logit"],
          # fractionalbinomial=["logit"], # fractional binomial distribution does not exists
          multinomial=[None],
          # ordinal=["ologit"], # ordinal distribution does not exists
          quasibinomial=["logit"],
          poisson=["identity", "log"],
          # negativebinomial=["identity", "log"], # negative binomial distribution is not implemented
          gamma=["identity", "log", "inverse"],
          tweedie=["tweedie"],
      )
  
      for family, links in families.items():
          for link in links:
              infer_family_helper(family, family, link, link)
  
      # revert to default
      infer_family_helper(
          "gamma",
          "gaussian",
          "log",
          "identity",
          kwargs2=dict(link="inverse"),
      )
      infer_family_helper(
          "gamma",
          "gaussian",
          "log",
          "identity",
          kwargs2=dict(family="tweedie", link="tweedie"),
      )
  
file_path: h2o-3/h2o-py/tests/testdir_algos/stackedensemble/pyunit_stackedensemble_distributions.py
imports: import sys
  import h2o
  from h2o.estimators.random_forest import H2ORandomForestEstimator
  from h2o.estimators.glm import H2OGeneralizedLinearEstimator
  from h2o.estimators.gbm import H2OGradientBoostingEstimator
  from h2o.estimators.stackedensemble import H2OStackedEnsembleEstimator
  from h2o.estimators.naive_bayes import H2ONaiveBayesEstimator
  from tests import pyunit_utils
label_desc: Use image node_id 4 for calling a global function with example usage: infer_family_test() without return types