<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_xpath(stmt, qualified=False, prefix_to_module=False):
 """Gets the XPath of the statement. Unless qualified=True, does not include prefixes unless the prefix changes mid-XPath. qualified will add a prefix to each node. prefix_to_module will resolve prefixes to module names instead. For RFC 8040, set prefix_to_module=True: qualified=True: qualified=True, prefix_to_module=True: """

    return mk_path_str(stmt, with_prefixes=qualified,
                       prefix_onchange=True, prefix_to_module=prefix_to_module)