code: def inspect_format_method(callable):
      if not isinstance(
          callable, (types.MethodType, types.BuiltinMethodType)
      ) or callable.__name__ not in ("format", "format_map"):
          return None
      obj = callable.__self__
      if isinstance(obj, string_types):
          return obj
  
imports: import operator
  import types
  import warnings
  from collections import deque
  from string import Formatter
  from markupsafe import EscapeFormatter
  from markupsafe import Markup
  from ._compat import abc
  from ._compat import PY2
  from ._compat import range_type
  from ._compat import string_types
  from .environment import Environment
  from .exceptions import SecurityError
label_desc: Use image node_id 1 for calling a global function with example usage: inspect_format_method(callable) and returns: None, obj