code: def modifies_known_mutable(obj: t.Any, attr: str) -> bool:
      """This function checks if an attribute on a builtin mutable object
      (list, dict, set or deque) or the corresponding ABCs would modify it
      if called.
  
      >>> modifies_known_mutable({}, "clear")
      True
      >>> modifies_known_mutable({}, "keys")
      False
      >>> modifies_known_mutable([], "append")
      True
      >>> modifies_known_mutable([], "index")
      False
  
      If called with an unsupported object, ``False`` is returned.
  
      >>> modifies_known_mutable("foo", "upper")
      False
      """
      for typespec, unsafe in _mutable_spec:
          if isinstance(obj, typespec):
              return attr in unsafe
      return False
  
imports: import operator
  import types
  import typing
  from _string import formatter_field_name_split
  from collections import abc
  from collections import deque
  from string import Formatter
  from markupsafe import EscapeFormatter
  from markupsafe import Markup
  from .environment import Environment
  from .exceptions import SecurityError
  from .runtime import Context
  from .runtime import Undefined
label_desc: Use image node_id 5 for calling a global function with example usage: modifies_known_mutable(obj, attr) and returns: False, unknown