create treeMl function
Signed-off-by: IcePlus <zhengjiabin.tj@gmail.com>