def _list_endpoints():
endpoints2address = dict()<EOL>endpoints = pyk_client.execute_operation(method='<STR_LIT:GET>', ops_path='<STR_LIT>').json()<EOL>logging.info('<STR_LIT>')<EOL>for ep in endpoints['<STR_LIT>']:<EOL><INDENT>eppath = '<STR_LIT>'<EOL>epaddress = '<STR_LIT>'<EOL>for metadata_entry in ep['<STR_LIT>']:<EOL><INDENT>if metadata_entry == '<STR_LIT>':<EOL><INDENT>eppath = ep['<STR_LIT>'][metadata_entry]<EOL>break<EOL><DEDENT><DEDENT>for subsets_entry in ep['<STR_LIT>']:<EOL><INDENT>epaddress = json.dumps(subsets_entry, indent=<NUM_LIT:2>, sort_keys=True)<EOL>break<EOL><DEDENT>endpoints2address[eppath] = epaddress<EOL><DEDENT>for k, v in endpoints2address.items():<EOL><INDENT>logging.info('<STR_LIT>' %(k, v))<EOL><DEDENT>
Helper function that prints the endpoint paths to addresses info.