code: def config_init(config_file, json_config_obj, config_dirname=None):
      
      HOME = os.environ['HOME']
      # client config dir
      if config_dirname:
          dir_path = HOME + '/' + config_dirname
          if not os.path.exists(dir_path):
              os.mkdir(dir_path)
              os.chmod(dir_path, 0o755)
      else:
          dir_path = HOME
      # client config file
      r = export_json_object(
              dict_obj=json_config_obj,
              filename=dir_path + '/' + config_file
          )
      return r
docs: 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