def container(**criteria):
    """
    Turns keyword arguments into a formatted container criteria.
    """
    criteria = ['%s="%s"' % (key, val) for key, val in criteria.items()]
    return '[%s]' % ' '.join(criteria)