code: def test_broken_getattr():
      class BrokenAttr:
          def __getattr__(self, name):
              1 / 0
  
          def __repr__(self):
              return "BrokenAttr()"
  
      test = BrokenAttr()
      result = pretty_repr(test)
      assert result == "BrokenAttr()"
  
imports: import collections
  import io
  import sys
  from array import array
  from collections import UserDict, defaultdict
  from dataclasses import dataclass, field
  from typing import Any, List, NamedTuple
  import attr
  import pytest
  from rich.console import Console
  from rich.measure import Measurement
  from rich.pretty import Node, Pretty, _ipy_display_hook, install, pprint, pretty_repr
  from rich.text import Text
label_desc: Use image node_id 20 for calling a global function with example usage: test_broken_getattr() and returns: str