Removed the wallet restrictions for rpc_deprecated.py
and added specific test case for the current deprecated rpc.
skip_test_if_missing_module
will skip the whole test when the wallet is missing, even if a part of the test is non-wallet related. This PR ensures that other tests not related to wallet can be ran and only this specific test will be skipped if there’s no wallet
For more context check #31278 (review)