parameters: (fn)
return_statement: return False
docstring: Returns True if fn is a bound method, regardless of whether
      fn was implemented in Python or in C.
docstring_summary: Returns True if fn is a bound method, regardless of whether
      fn was implemented in Python or in C.
docstring_tokens: Returns True if fn is a bound method regardless of whether fn was implemented in Python or in C .
function: def _is_bound_method(fn):
      """
      Returns True if fn is a bound method, regardless of whether
      fn was implemented in Python or in C.
      """
      if inspect.ismethod(fn):
          return True
      if inspect.isbuiltin(fn):
          self = getattr(fn, '__self__', None)
          return not (inspect.ismodule(self) or (self is None))
      return False
function_tokens: def _is_bound_method ( fn ) : if inspect . ismethod ( fn ) : return True if inspect . isbuiltin ( fn ) : self = getattr ( fn , '__self__' , None ) return not ( inspect . ismodule ( self ) or ( self is None ) ) return False