@Yutong_Lin - I believe you can utilize a approach as shown in the solution to the question in this thread.
Hope that helps!