code: def __rich__(self) -> Text:
      return Text("Foo")
  
file_path: rich/tests/test_protocol.py
imports: import io
  from rich.abc import RichRenderable
  from rich.console import Console
  from rich.panel import Panel
  from rich.text import Text
label_desc: Use image node_id 1 for calling the Foo obj's underlying member method code with example usage: obj.__rich__() and returns: Text