def _init_from_file(self, path: Text) -> None:
    path = os.path.abspath(path)
    if (os.path.exists(path) and rasa.shared.data.is_config_file(path)):
        config = rasa.shared.utils.io.read_config_file(path)
        parent_directory = os.path.dirname(path)
        self._init_from_dict(config, parent_directory)
    else:
        rasa.shared.utils.io.raise_warning(f"'{path}' does not exist or is not a valid config file.")
def _init_from_file(self, path: Text) -> None:
    path = os.path.abspath(path)
    if (os.path.exists(path) and rasa.shared.data.is_config_file(path)):
        config = rasa.shared.utils.io.read_config_file(path)
        parent_directory = os.path.dirname(path)
        self._init_from_dict(config, parent_directory)
    else:
        rasa.shared.utils.io.raise_warning(f"'{path}' does not exist or is not a valid config file.")