code: def h2o_H2OFrame_entropy():
      """
      Python API test: h2o.frame.H2OFrame.entropy()
  
      copied from pyunit_entropy.py
      """
      frame = h2o.H2OFrame.from_python(["redrum"])
      g = frame.entropy()
      assert_is_type(g, H2OFrame)
      assert (
          abs(g[0, 0] - 2.25162916739) < 1e-6
      ), "h2o.H2OFrame.entropy() command is not working."
  
      # #test empty strings
      strings = h2o.H2OFrame.from_python([""], column_types=["string"])
      assert_is_type(strings, H2OFrame)
      assert (
          strings.entropy()[0, 0] == 0
      ), "h2o.H2OFrame.entropy() command is not working."
  
imports: import sys
  import h2o
  from tests import pyunit_utils
  from h2o.utils.typechecks import assert_is_type
  from h2o.frame import H2OFrame
label_desc: Use image node_id 1 for calling a global function with example usage: h2o_H2OFrame_entropy() without return types