code: def test_rich_cast_fake():
      fake = Fake()
      console = Console(file=io.StringIO())
      console.print(fake)
      assert console.file.getvalue() == "Fake()\n"
  
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 2 for calling a global function with example usage: test_rich_cast_fake() without return types