def parse_endpoint_name(self, endpoint):
parts = [x for x in endpoint.split('<STR_LIT::>') if x]<EOL>endpoint = parts[<NUM_LIT:0>]<EOL>if len(parts) == <NUM_LIT:1>:<EOL><INDENT>path = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>path = '<STR_LIT:/>'.join(parts[<NUM_LIT:1>:])<EOL><DEDENT>return endpoint, path<EOL>
split an endpoint name by colon, as the user can provide an
       endpoint name separated from a path:

       Parameters
       ==========
       endpoint 12345:/path/on/remote