code: def put(self, entity):
      
      actual_entity = _normalize_entity(entity)
      if actual_entity is None:
        return self.ndb_put(entity)
      self.puts.append(actual_entity)
docs: Registers entity to put to datastore.
  
      Args:
        entity: an entity or model instance to put.