How to create your own ML model to be used with ML extractor in document understanding?

How to create your own ML model to be used with ML extractor in document understanding?