code: def bar(  # noqa: D102
      self, baz: str, ham: str | None = None, foobar: str | None = None
  ) -> None:
      ...
  
file_path: polars/py-polars/tests/unit/utils/test_deprecation.py
imports: from __future__ import annotations
  import inspect
  from typing import Any
  import pytest
  from polars.utils.deprecation import deprecate_function, deprecate_nonkeyword_arguments, deprecate_renamed_function, deprecate_renamed_parameter, issue_deprecation_warning
label_desc: Use image node_id 1 for calling the Foo obj's underlying member method code with example usage: obj.bar(baz, ham, foobar) without return types