<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_filetypes2wildcards(filetypes):
 """Returns OrderedDict of filetypes to wildcards The filetypes that are provided in the filetypes parameter are checked for availability. Only available filetypes are inluded in the return ODict. Parameters filetypes: Iterable of strings \tFiletype list """


    def is_available(filetype):
        return filetype not in FILETYPE_AVAILABILITY or \
               FILETYPE_AVAILABILITY[filetype]

    available_filetypes = filter(is_available, filetypes)

    return OrderedDict((ft, FILETYPE2WILDCARD[ft])
                       for ft in available_filetypes)