code: def h2o_H2OFrame_insert_missing_values():
      """
      Python API test: h2o.frame.H2OFrame.insert_missing_values(fraction=0.1, seed=None)
      """
      python_lists = np.random.uniform(-1, 1, (10000, 10))
      h2oframe = h2o.H2OFrame(python_obj=python_lists)
  
      fraction = random.uniform(0, 1)
      h2oframe.insert_missing_values(fraction=fraction, seed=None)
      fract_NAs = sum(h2oframe.nacnt()) / (
          h2oframe.ncol * h2oframe.nrow
      )
      assert (
          abs(fraction - fract_NAs) < 1e-2
      ), "h2o.H2OFrame.insert_missing_values() command is not working."
  
file_path: h2o-3/h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_insert_mssing_values.py
imports: import sys
  import h2o
  from tests import pyunit_utils
  from random import randrange
  from h2o.frame import H2OFrame
  from h2o.utils.typechecks import assert_is_type
  import numpy
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: h2o_H2OFrame_insert_missing_values() without return types