code: def test_repr():
      rule = Rule("foo")
      assert isinstance(repr(rule), str)
  
file_path: rich/tests/test_rule.py
imports: import io
  import pytest
  from rich.console import Console
  from rich.rule import Rule
  from rich.text import Text
label_desc: Use image node_id 10 for calling a global function with example usage: test_repr() without return types