code: def is_method(obj):
      return (
          inspect.ismethoddescriptor(obj)
          or inspect.ismethod(obj)
          or is_cyfunction(obj)
          or type(obj)
          in (
              type(str.index),
              type(str.__add__),
              type(str.__new__),
          )
      )
  
imports: import os
  import inspect
  import textwrap
label_desc: Use image node_id 3 for calling a global function with example usage: is_method(obj) and returns: unknown