def _HasLabelChanges(args):
  """True iff any of the label flags are set."""
  label_flags = ['update_labels', 'clear_labels', 'remove_labels']
  # hasattr check is to allow the same code to work for release tracks that
  # don't have the args at all yet.
  return any(hasattr(args, flag) and args.IsSpecified(flag)
             for flag in label_flags)