code: def format_pylint_disables(error_names, tag=True):
      
      tag_str = "lint-amnesty, " if tag else ""
      if error_names:
          return u"  # {tag}pylint: disable={disabled}".format(
              disabled=", ".join(sorted(error_names)),
              tag=tag_str,
          )
      else:
          return ""
docs: Format a list of error_names into a 'pylint: disable=' line.