def METHOD_NAME(self, *args, **kwds):
    if 'patterns' in kwds:
        patterns = kwds.pop('patterns')
    else:
        patterns = []
    mi = self.ts.METHOD_NAME(*args, **kwds)
    for (tag, tp, pat) in patterns:
        mi.pattern(tag, tp, pat)
    return mi