def METHOD_NAME(cls):
    cls.template_obj = cls.env["xlsx.template"]
    # Create xlsx.template using input_instruction
    input_instruction = {
        "__EXPORT__": {
            "sale_order": {
                "_HEAD_": {
                    "B2": 'partner_id.display_name${value or ""}'
                    "#{align=left;style=text}",
                    "B3": 'name${value or ""}#{align=left;style=text}',
                },
                "order_line": {
                    "A6": 'product_id.display_name${value or ""}' "#{style=text}",
                    "B6": 'name${value or ""}#{style=text}',
                    "C6": "product_uom_qty${value or 0}#{style=number}",
                    "D6": 'product_uom.name${value or ""}#{style=text}',
                    "E6": "price_unit${value or 0}#{style=number}",
                    "F6": 'tax_id${value and ","'
                    '.join([x.display_name for x in value]) or ""}',
                    "G6": "price_subtotal${value or 0}#{style=number}",
                },
            }
        },
        "__IMPORT__": {
            "sale_order": {
                "order_line": {
                    "A6": "product_id",
                    "B6": "name",
                    "C6": "product_uom_qty",
                    "D6": "product_uom",
                    "E6": "price_unit",
                    "F6": "tax_id",
                }
            }
        },
        # '__POST_IMPORT__': '${object.post_import_do_something()}',
    }
    vals = {
        "res_model": "sale.order",
        "fname": "sale_order.xlsx",
        "name": "Sale Order Template",
        "description": "Sample Sales Order Template for testing",
        "input_instruction": str(input_instruction),
    }
    cls.sample_template = cls.template_obj.create(vals)