code: def test_python_api():
      def test_parameterized_distribution_without_param():
          aml = H2OAutoML(distribution=dict(type="huber"))
          aml = H2OAutoML(distribution="tweedie")
          aml = H2OAutoML(distribution="quantile")
  
      def test_parameterized_distribution_without_param2():
          try:
              aml = H2OAutoML(distribution="custom")
              assert False, "should have failed"
          except ValueError:
              pass
          try:
              aml = H2OAutoML(distribution=dict(type="custom"))
              assert False, "should have failed"
          except ValueError:
              pass
  
      return [
          test_parameterized_distribution_without_param,
          test_parameterized_distribution_without_param2,
      ]
  
imports: import sys, os
  import numpy
  import pandas
  import h2o
  from h2o.automl import *
  from tests import pyunit_utils
label_desc: Use image node_id 2 for calling a global function with example usage: test_python_api() and returns: list