code: def create_all(cls, list_of_kwargs):
          
          try:
              return cls.add_all([
                  cls.new(**kwargs) if kwargs is not None else None for kwargs in list_of_kwargs])
          except:
              cls.session.rollback()
              raise
docs: Batch method for creating a list of instances
  
          Args:
              list_of_kwargs(list of dicts): hereA list of dicts where
                  each dict denotes the keyword args that you would pass
                  to the create method separately
  
          Examples:
  
              >>> Customer.create_all([
              ... {'name': 'Vicky', 'age': 34, 'user_id': 1},
              ... {'name': 'Ron', 'age': 40, 'user_id': 1, 'gender': 'Male'}])