code: def _match_filters(parameter, filters=None):
          
          for filter_obj in (filters or []):
              key = filter_obj['Key']
              option = filter_obj.get('Option', 'Equals')
              values = filter_obj.get('Values', [])
  
              what = None
              if key == 'Type':
                  what = parameter.type
              elif key == 'KeyId':
                  what = parameter.keyid
  
              if option == 'Equals'\
                      and not any(what == value for value in values):
                  return False
              elif option == 'BeginsWith'\
                      and not any(what.startswith(value) for value in values):
                  return False
          # True if no false match (or no filters at all)
          return True
docs: Return True if the given parameter matches all the filters