code: def obj_has_method(obj, method):
      """http://stackoverflow.com/questions/34439/finding-what-methods-an-object-has"""
      return hasattr(obj, method) and callable(getattr(obj, method))
  
imports: from __future__ import absolute_import, unicode_literals
  import base64
  import hashlib
  import json
  import logging
  import os
  import pickle
  from builtins import str
  import numpy
  from atm.compat import getargs
label_desc: Use image node_id 7 for calling a global function with example usage: obj_has_method(obj, method) and returns: unknown