code: def _update_local_conf(config, service_id, client_secret):
      
      lines = _get_existing_conf(config)
      lines.append('\nservice_id = "{}"\n'.format(service_id))
      if client_secret:
          lines.append('client_secret = "{}"\n'.format(client_secret))
  
      with open(os.path.join(config, 'local.conf'), 'w') as f:
          f.writelines(lines)
docs: Update local.conf with service id and client secrets
      :param config: Location of config files
      :param service_id: Service ID
      :param client_secret: Client Secret