### 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
if keyword.arg == 'collection_name':
                            if isinstance(keyword.value.value, astroid.Name):
                                
                                return
                            collection_name = keyword.value.value
                if not version and not date:
                    try:
                        version = node.args[1].value
                    except IndexError:
                        self.add_message('ansible-deprecated-no-version', node=node)
                        return
                if version and date:
                    self.add_message('ansible-deprecated-both-version-and-date', node=node)
                if collection_name:
                    this_collection = collection_name == (self.collection_name or 'ansible.builtin')
                    if not this_collection:
                        self.add_message('wrong-collection-deprecated', node=node, args=(collection_name,))
                elif self.collection_name is not None:
                    self.add_message('ansible-deprecated-no-collection-name', node=node)
                if date:
                    self._check_date(node, date)
                elif version:
                    self._check_version(node, version, collection_name)
        except AttributeError:
            
            pass
def register(linter):
    """required method to auto register this checker """
    linter.register_checker(AnsibleDeprecatedChecker(linter))