<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def infer_namespaces(ac):
 """infer possible namespaces of given accession based on syntax Always returns a list, possibly empty ['ensembl'] ['ensembl'] [] ['refseq'] ['refseq'] [] ['uniprot'] ['insdc', 'uniprot'] ['uniprot'] """

    return [v for k, v in ac_namespace_regexps.items() if k.match(ac)]