code: def test_broken_call_attr():
      class NotCallable:
          __call__ = 5  # Passes callable() but isn't really callable
  
          def __repr__(self):
              return "NotCallable()"
  
      class Foo:
          foo = NotCallable()
  
      foo = Foo()
      assert callable(foo.foo)
      expected = "╭─ <class 'tests.test_inspect.test_broken_call_attr.<locals>.Foo'> ─╮\n│ foo = NotCallable()                                               │\n╰───────────────────────────────────────────────────────────────────╯\n"
      result = render(foo, methods=True, width=100)
      print(repr(result))
      assert expected == result
  
imports: import io
  import sys
  from types import ModuleType
  from typing import Sequence, Type
  import pytest
  from rich import inspect
  from rich._inspect import get_object_types_mro, get_object_types_mro_as_strings, is_object_one_of_types
  from rich.console import Console
label_desc: Use image node_id 13 for calling a global function with example usage: test_broken_call_attr() and returns: str