code: def test_rich_repr() -> None:
      assert (repr(Foo("hello"))) == "Foo('hello', 'hello', egg=1)"
      assert (
          repr(Foo("hello", bar=3))
      ) == "Foo('hello', 'hello', bar=3, egg=1)"
  
imports: import sys
  from typing import Optional
  import pytest
  import rich.repr
  from rich.console import Console
  from inspect import Parameter
label_desc: Use image node_id 1 for calling a global function with example usage: test_rich_repr() without return types