code: def test_rich_repr_positional_only() -> None:
      _locals = locals().copy()
      exec(
          """\
  @rich.repr.auto
  class PosOnly:
      def __init__(self, foo, /):
          self.foo = 1
      """,
          globals(),
          _locals,
      )
      p = _locals["PosOnly"](1)
      assert repr(p) == "PosOnly(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 2 for calling a global function with example usage: test_rich_repr_positional_only() without return types