### Summary

```
00:55   File "/root/.ansible/test/venv/sanity.pylint/3.10/1d079f27/lib/python3.10/site-packages/pylint/utils/ast_walker.py", line 74, in walk
00:55     callback(astroid)
00:55   File "/root/ansible/test/lib/ansible_test/_util/controller/sanity/pylint/plugins/deprecated.py", line 252, in visit_call
00:55     self._check_version(node, version, collection_name)
00:55   File "/root/ansible/test/lib/ansible_test/_util/controller/sanity/pylint/plugins/deprecated.py", line 175, in _check_version
00:55     self.add_message('invalid-version', node=node, args=(version,))
00:55   File "/root/.ansible/test/venv/sanity.pylint/3.10/1d079f27/lib/python3.10/site-packages/pylint/checkers/base_checker.py", line 111, in add_message
00:55     self.linter.add_message(msgid, line, node, args, confidence, col_offset)
00:55   File "/root/.ansible/test/venv/sanity.pylint/3.10/1d079f27/lib/python3.10/site-packages/pylint/message/message_handler_mix_in.py", line 222, in add_message
00:55     message_definitions = self.msgs_store.get_message_definitions(msgid)
00:55   File "/root/.ansible/test/venv/sanity.pylint/3.10/1d079f27/lib/python3.10/site-packages/pylint/message/message_definition_store.py", line 50, in get_message_definitions
00:55     for m in self.message_id_store.get_active_msgids(msgid_or_symbol)
00:55   File "/root/.ansible/test/venv/sanity.pylint/3.10/1d079f27/lib/python3.10/site-packages/pylint/message/message_id_store.py", line 116, in get_active_msgids
00:55     raise UnknownMessageError(error_msg)
00:55 pylint.exceptions.UnknownMessageError: No such message id or symbol 'invalid-version'.
```

`invalid-version` is not defined in that plugin.

Additionally, we probably need to handle the issue where the `version` is a reference to a variable that cannot be resolved via astroid:

```
display.deprecated(msg, version=deprecation[1]['version'])
```

### Issue Type

Bug Report

### Component Name

test/lib/ansible_test/_util/controller/sanity/pylint/plugins/deprecated.py

### Ansible Version

```console
$ ansible --version
```


### Configuration

```console
$ ansible-config dump --only-changed
```


### OS / Environment

N/A

### Steps to Reproduce

<!--- Paste example playbooks or commands between quotes below -->
```yaml (paste below)

```


### Expected Results

N/A

### Actual Results

```console
N/A
```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
"""Checks for Display.deprecated calls to ensure that the ``version``
    has not passed or met the time for removal
    """
    __implements__ = (IAstroidChecker,)
    name = 'deprecated'
    msgs = MSGS
    options = (
        ('collection-name', {
            'default': None,
            'type': 'string',
            'metavar': '<name>',
            'help': 'The collection\'s name used to check collection names in deprecations.',
        }),
        ('collection-version', {
            'default': None,
            'type': 'string',
            'metavar': '<version>',
            'help': 'The collection\'s version number used to check deprecations.',
        }),
    )
    def __init__(self, *args, **kwargs):