code: def NamedPlaceholders(iterable):
    
    placeholders = ", ".join("%({})s".format(key) for key in sorted(iterable))
    return "({})".format(placeholders)
docs: Returns named placeholders from all elements of the given iterable.
  
    Use this function for VALUES of MySQL INSERTs.
  
    To account for Iterables with undefined order (dicts before Python 3.6),
    this function sorts column names.
  
    Examples:
      >>> NamedPlaceholders({"password": "foo", "name": "bar"})
      u'(%(name)s, %(password)s)'
  
    Args:
      iterable: The iterable of strings to be used as placeholder keys.
  
    Returns:
      A string containing a tuple of comma-separated, sorted, named, placeholders.