code: def _has_method(cls, name):
      return hasattr(cls, name) and callable(getattr(cls, name))
  
file_path: h2o-3/h2o-py/tests/testdir_sklearn/pyunit_sklearn_api.py
imports: import importlib, inspect, os, sys
  from tests import pyunit_utils
label_desc: Use image node_id 3 for calling a global function with example usage: _has_method(cls, name) and returns: unknown