def METHOD_NAME(self):
    # Assume node is stopped
    inc_conf_file_path = os.path.join(self.nodes[0].datadir, "include.conf")
    with open(
        os.path.join(self.nodes[0].datadir, "defi.conf"), "a", encoding="utf-8"
    ) as conf:
        conf.write("includeconf={}\n".format(inc_conf_file_path))
    self.nodes[0].assert_start_raises_init_error(
        expected_msg="Error: Error parsing command line arguments: Invalid parameter -dash_cli",
        extra_args=["-dash_cli=1"],
    )
    with open(inc_conf_file_path, "w", encoding="utf-8") as conf:
        conf.write("dash_conf=1\n")
    with self.nodes[0].assert_debug_log(
        expected_msgs=["Ignoring unknown configuration value dash_conf"]
    ):
        self.start_node(0)
    self.stop_node(0)
    with open(inc_conf_file_path, "w", encoding="utf-8") as conf:
        conf.write("-dash=1\n")
    self.nodes[0].assert_start_raises_init_error(
        expected_msg="Error: Error reading configuration file: parse error on line 1: -dash=1, options in configuration file must be specified without leading -"
    )
    if self.is_wallet_compiled():
        with open(inc_conf_file_path, "w", encoding="utf8") as conf:
            conf.write("wallet=foo\n")
        self.nodes[0].assert_start_raises_init_error(
            expected_msg="Error: Config setting for -wallet only applied on regtest network when in [regtest] section."
        )
    with open(inc_conf_file_path, "w", encoding="utf-8") as conf:
        conf.write("regtest=0\n")  # mainnet
        conf.write("acceptnonstdtxn=1\n")
    self.nodes[0].assert_start_raises_init_error(
        expected_msg="Error: acceptnonstdtxn is not currently supported for main chain"
    )
    with open(inc_conf_file_path, "w", encoding="utf-8") as conf:
        conf.write("nono\n")
    self.nodes[0].assert_start_raises_init_error(
        expected_msg="Error: Error reading configuration file: parse error on line 1: nono, if you intended to specify a negated option, use nono=1 instead"
    )
    with open(inc_conf_file_path, "w", encoding="utf-8") as conf:
        conf.write("server=1\nrpcuser=someuser\nrpcpassword=some#pass")
    self.nodes[0].assert_start_raises_init_error(
        expected_msg="Error: Error reading configuration file: parse error on line 3, using # in rpcpassword can be ambiguous and should be avoided"
    )
    with open(inc_conf_file_path, "w", encoding="utf-8") as conf:
        conf.write("server=1\nrpcuser=someuser\nmain.rpcpassword=some#pass")
    self.nodes[0].assert_start_raises_init_error(
        expected_msg="Error: Error reading configuration file: parse error on line 3, using # in rpcpassword can be ambiguous and should be avoided"
    )
    with open(inc_conf_file_path, "w", encoding="utf-8") as conf:
        conf.write("server=1\nrpcuser=someuser\n[main]\nrpcpassword=some#pass")
    self.nodes[0].assert_start_raises_init_error(
        expected_msg="Error: Error reading configuration file: parse error on line 4, using # in rpcpassword can be ambiguous and should be avoided"
    )
    inc_conf_file2_path = os.path.join(self.nodes[0].datadir, "include2.conf")
    with open(
        os.path.join(self.nodes[0].datadir, "defi.conf"), "a", encoding="utf-8"
    ) as conf:
        conf.write("includeconf={}\n".format(inc_conf_file2_path))
    with open(inc_conf_file_path, "w", encoding="utf-8") as conf:
        conf.write("testnot.datadir=1\n")
    with open(inc_conf_file2_path, "w", encoding="utf-8") as conf:
        conf.write("[testnet]\n")
    self.restart_node(0)
    self.nodes[0].stop_node(
        expected_stderr="Warning: "
        + inc_conf_file_path
        + ":1 Section [testnot] is not recognized."
        + os.linesep
        + "Warning: "
        + inc_conf_file2_path
        + ":1 Section [testnet] is not recognized."
    )
    with open(inc_conf_file_path, "w", encoding="utf-8") as conf:
        conf.write("")  # clear
    with open(inc_conf_file2_path, "w", encoding="utf-8") as conf:
        conf.write("")  # clear