code: def bulk_create_with_history(objs, model, batch_size=None):
      
  
      history_manager = get_history_manager_for_model(model)
  
      with transaction.atomic(savepoint=False):
          objs_with_id = model.objects.bulk_create(objs, batch_size=batch_size)
          history_manager.bulk_history_create(objs_with_id, batch_size=batch_size)
  
      return objs_with_id
docs: Bulk create the objects specified by objs while also bulk creating
      their history (all in one transaction).
      :param objs: List of objs (not yet saved to the db) of type model
      :param model: Model class that should be created
      :param batch_size: Number of objects that should be created in each batch
      :return: List of objs with IDs