code: def _check_for_setattr(instance):
      """
      Check if there's any setattr method inside an instance. If so, return True.
      """
      from jedi.evaluate.context import ModuleContext
  
      module = instance.get_root_context()
      if not isinstance(module, ModuleContext):
          return False
  
      node = module.tree_node
      try:
          stmts = node.get_used_names()["setattr"]
      except KeyError:
          return False
  
      return any(
          node.start_pos < stmt.start_pos < node.end_pos
          for stmt in stmts
      )
  
imports: from parso.python import tree
  from jedi._compatibility import force_unicode
  from jedi import debug
  from jedi.evaluate.compiled import CompiledObject
  from jedi.evaluate.helpers import is_string
label_desc: Use image node_id 2 for calling a global function with example usage: _check_for_setattr(instance) and returns: any, False, False