def METHOD_NAME(self, temp_dir, settings_obj):
    custom_settings = {
        "version": "CUSTOM_VERSION",
        "socks_port": 9999,
        "use_stealth": True,
    }
    tmp_file, tmp_file_path = tempfile.mkstemp(dir=temp_dir.name)
    with open(tmp_file, "w") as f:
        json.dump(custom_settings, f)
    settings_obj.filename = tmp_file_path
    settings_obj.load()
    assert settings_obj._settings["version"] == "CUSTOM_VERSION"
    assert settings_obj._settings["socks_port"] == 9999
    assert settings_obj._settings["use_stealth"] is True
    os.remove(tmp_file_path)
    assert os.path.exists(tmp_file_path) is False