def parts_to_uri(base_uri, uri_parts):
uri = "<STR_LIT:/>".join(map(lambda x: str(x).rstrip('<STR_LIT:/>'), [base_uri] + uri_parts))<EOL>return uri<EOL>
Converts uri parts to valid uri.
Example: /memebers, ['profile', 'view'] => /memembers/profile/view