import six


def FormatTags(tags_dict):
  """Format a dict of tags into arguments.

  Args:
    tags_dict: Tags to be formatted.

  Returns:
    A string contains formatted tags
  """
  return ','.join(
      '{0}={1}'.format(k, v) for k, v in sorted(six.iteritems(tags_dict)))