docs: def insert_or_replace_entity(self, entity):
          '''
          Adds an insert or replace entity operation to the batch. See 
          :func:`~azure.storage.table.tableservice.TableService.insert_or_replace_entity` for more 
          information on insert or replace operations.
  
          The operation will not be executed until the batch is committed.
  
          :param entity:
              The entity to insert or replace. Could be a dict or an entity object. 
              Must contain a PartitionKey and a RowKey.
          :type entity: a dict or :class:`azure.storage.table.models.Entity`
         '''
          request = _insert_or_replace_entity(entity)
          self._add_to_batch(entity['PartitionKey'], entity['RowKey'], request)