code: def _with_fields(*fields):
      
      dd = {}
      for x in fields:
          dd[x] = _COMMON_FIELDS[x]
  
      def wrap(cls):
          dd.update(cls.__dict__)
          return type(cls.__name__, cls.__bases__, dd)
  
      return wrap
docs: Class decorator to include common query fields
      :param fields: List of fields to include. These should be keys of the
          `_COMMON_FIELDS` dict