code: def __format_filters(filters):
          
          if filters is not None:
              for k in filters:
                  if 'filter[' not in k:
                      filters['filter[{}]'.format(k)] = filters.pop(k)
          return filters
docs: Format filters for the api query (to filter[<filter-name>])
  
          :param filters: dict: can be None, filters for the query
          :return: the formatted filters, or None