class_docstr: Base class for ``ModelFrame`` and ``ModelFrame``
class_docstr_tok: ["Base","class","for","``","ModelFrame","``","and","``","ModelFrame","``"]
code: def _check_attr(self, estimator, method_name):
      if not hasattr(estimator, method_name):
          msg = "class {0} doesn't have {1} method"
          raise ValueError(msg.format(type(estimator), method_name))
      return getattr(estimator, method_name)
  
imports: import warnings
  import pandas.compat
  import pandas_ml.misc
  from pandas_ml.compat import Appender
label_desc: Use image node_id 1 for calling the ModelTransformer obj's underlying member method code with example usage: obj._check_attr(estimator, method_name) and returns: getattr