def entity_to_dict(self, entity, bulkload_state):
    if self._transformer_spec.use_model_on_export:
      instance = self._transformer_spec.model.from_entity(entity)
    else:
      instance = entity

    export_dict = {}
    bulkload_state.current_entity = entity
    bulkload_state.current_instance = instance
    bulkload_state.current_dictionary = export_dict
    self.__run_export_transforms(instance, export_dict, bulkload_state)
    if self._transformer_spec.post_export_function:
      post_export_result = self._transformer_spec.post_export_function(
          instance, export_dict, bulkload_state)



      return post_export_result
    return export_dict
Returns ``expand_mul(x**degree(p, x)*p.subs(x, 1/x))``
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/bulkload/bulkloader_config.py/DictConvertor.entity_to_dict--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/polys/numberfields.py/_invertx