code: def test_warn_if_config_mandatory_keys_are_not_set_invalid_paths(
      config_file: Text, message: Text
  ) -> None:
      importer = RasaFileImporter(config_file=config_file)
      validator = Validator.from_importer(importer)
  
      with pytest.warns(UserWarning, match=message):
          validator.warn_if_config_mandatory_keys_are_not_set()
  
imports: import textwrap
  import warnings
  from typing import Text
  import pytest
  from _pytest.logging import LogCaptureFixture
  from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION
  from rasa.validator import Validator
  from rasa.shared.importers.rasa import RasaFileImporter
  from pathlib import Path
label_desc: Use image node_id 35 for calling a global function with example usage: test_warn_if_config_mandatory_keys_are_not_set_invalid_paths(config_file, message) without return types