code: def ar_path_to_x_path(ar_path, dest_element=None):
      # type: (str, typing.Optional[str]) -> str
      
      ar_path_elements = ar_path.strip('/').split('/')
      xpath = "."
  
      for element in ar_path_elements[:-1]:
          xpath += "//A:SHORT-NAME[text()='" + element + "']/.."
      if dest_element:
          xpath += "//A:" + dest_element + "/A:SHORT-NAME[text()='" + ar_path_elements[-1] + "']/.."
      else:
          xpath += "//A:SHORT-NAME[text()='" + ar_path_elements[-1] + "']/.."
  
      return xpath
docs: Get path in translation-dictionary.