code: def set_config_variables(repo, variables):
      
      with repo.config_writer() as writer:
          for k, value in variables.items():
              section, option = k.split('.')
              writer.set_value(section, option, value)
          writer.release()
docs: Set config variables
  
      Args:
          repo (git.Repo): repo
          variables (dict): entries of the form 'user.email': 'you@example.com'