<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def select(select, tag, namespaces=None, limit=0, flags=0, **kwargs):
 """Select the specified tags."""


    return compile(select, namespaces, flags, **kwargs).select(tag, limit)