code: def sync_type(ks_name, type_model, connection=None):
      
      if not _allow_schema_modification():
          return
  
      if not issubclass(type_model, UserType):
          raise CQLEngineException("Types must be derived from base UserType.")
  
      _sync_type(ks_name, type_model, connection=connection)
docs: Inspects the type_model and creates / updates the corresponding type.
  
      Note that the attributes removed from the type_model are not deleted on the database (this operation is not supported).
      They become effectively ignored by (will not show up on) the type_model.
  
      **This function should be used with caution, especially in production environments.
      Take care to execute schema modifications in a single context (i.e. not concurrently with other clients).**
  
      *There are plans to guard schema-modifying functions with an environment-driven conditional.*