code: def has_docstring(obj):
      if inspect.ismethod(obj) or inspect.isfunction(obj):
          doc = obj.__doc__
          return doc is not None and len(doc) != 0
      return False
  
imports: import inspect
  import datetime
label_desc: Use image node_id 2 for calling a global function with example usage: has_docstring(obj) and returns: False, unknown