def config_init(config_file, json_config_obj, config_dirname=None):
HOME = os.environ['<STR_LIT>']<EOL>if config_dirname:<EOL><INDENT>dir_path = HOME + '<STR_LIT:/>' + config_dirname<EOL>if not os.path.exists(dir_path):<EOL><INDENT>os.mkdir(dir_path)<EOL>os.chmod(dir_path, <NUM_LIT>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>dir_path = HOME<EOL><DEDENT>r = export_json_object(<EOL>dict_obj=json_config_obj,<EOL>filename=dir_path + '<STR_LIT:/>' + config_file<EOL>)<EOL>return r<EOL>
Summary:
    Creates local config from JSON seed template
Args:
    :config_file (str): filesystem object containing json dict of config values
    :json_config_obj (json):  data to be written to config_file
    :config_dirname (str):  dir name containing config_file
Returns:
    TYPE: bool, Success | Failure