def METHOD_NAME(env_var, value):
  """Sets the env variable to 'value'; unsets it when 'value' is None."""
  if value is not None:
    os.environ[env_var] = value
  elif env_var in os.environ:
    del os.environ[env_var]