<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def relative_path(reference_path, input_path):
 """Get the relative path to input_path from reference_path. :param reference_path: The reference path. :type reference_path: str :param input_path: The input path. :type input_path: str """

        start_path = os.path.dirname(reference_path)
        try:
            relative_path = os.path.relpath(input_path, start_path)
        except ValueError:
            # LOGGER.info(e.message)
            relative_path = input_path
        return relative_path