How to override core function

I need to overide create_sales_order function of the ecommerce integration app.How can i do that…
In ecommerce integration —>inside shopify app—>file name order.py inside the file there is a function name create_sales_order in place of this function I need to run my override function how can i achieve this.

You can use monkey-patching to override core methods.