code: def __rich_repr__(self):
      yield self.foo
      yield None, self.foo,
      yield "bar", self.bar, None
      yield "egg", self.egg
  
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 2 for calling the Foo obj's underlying member method code with example usage: obj.__rich_repr__() without return types