code: def custom_distribution_bernoulli():
      return h2o.upload_custom_distribution(
          CustomDistributionBernoulli,
          func_name="custom_bernoulli",
          func_file="custom_bernoulli.py",
      )
  
file_path: h2o-3/h2o-py/tests/testdir_algos/gbm/pyunit_PUBDEV_4076_custom_distribution_mojo.py
imports: import sys, os
  import tempfile
  import h2o
  from tests.pyunit_utils import standalone_test
  from tests.pyunit_utils import random_dataset, build_save_model_generic, getMojoName, mojo_predict
  from tests.pyunit_utils import compare_frames_local
  from h2o.utils.distributions import CustomDistributionBernoulli
label_desc: Use image node_id 1 for calling a global function with example usage: custom_distribution_bernoulli() and returns: h2o