def METHOD_NAME(self):
    assert get_path(None, "foo") is None
    assert get_path("foo", "foo") is None
    assert get_path(42, "foo") is None  # type: ignore[arg-type]
    assert get_path(ValueError(), "foo") is None  # type: ignore[arg-type]
    assert get_path(True, "foo") is None  # type: ignore[arg-type]