code: def insert(self, storagemodel) -> StorageTableModel:
          
  
          modeldefinition = self.getmodeldefinition(storagemodel, True)
  
          try:
              modeldefinition['tableservice'].insert_or_replace_entity(modeldefinition['tablename'], storagemodel.entity())
              storagemodel._exists = True
  
          except AzureMissingResourceHttpError as e:
              storagemodel._exists = False
              log.debug('can not insert or replace table entity:  Table {}, PartitionKey {}, RowKey {} because {!s}'.format(modeldefinition['tablename'], storagemodel.getPartitionKey(), storagemodel.getRowKey(), e))
  
          except Exception as e:
              storagemodel._exists = False
              msg = 'can not insert or replace table entity:  Table {}, PartitionKey {}, RowKey {} because {!s}'.format(modeldefinition['tablename'], storagemodel.PartitionKey, storagemodel.RowKey, e)
              raise AzureStorageWrapException(msg=msg)
  
          finally:
              return storagemodel
docs: insert model into storage