original_docstring: 
      - Get Clusters and Status on SLATE
      
docstring: Get Clusters and Status on SLATE
docstring_tokens: Get Clusters and Status on SLATE
code: def list_clusters_dict_request(session):
      """
      - Get Clusters and Status on SLATE
      """
      access_token = get_user_access_token(session)
      query = {'token': access_token}
      # Sorted ordered list of clusters on slate
      slate_clusters = list_clusters_request()
      slate_clusters.sort(key=lambda e: e['metadata']['name'])
  
      multiplexJson = {}
      for cluster in slate_clusters:
          cluster_name = cluster['metadata']['name']
          cluster_status_query = "/v1alpha3/clusters/"+cluster_name+"/ping?token="+query['token']+"&cache"
          multiplexJson[cluster_status_query] = {"method":"GET"}
      # POST request for multiplex return
      multiplex = requests.post(
          slate_api_endpoint + '/v1alpha3/multiplex', params=query, json=multiplexJson)
      multiplex = multiplex.json()
  
      cluster_status_dict = {}
      for cluster in multiplex:
          cluster_name = cluster.split('/')[3]
          cluster_status_dict[cluster_name] = json.loads(multiplex[cluster]['body'])['reachable']
      return slate_clusters, cluster_status_dict
code_tokens: def list_clusters_dict_request ( session ) : access_token = get_user_access_token ( session ) query = { 'token' : access_token } slate_clusters = list_clusters_request ( ) slate_clusters . sort ( key = lambda e : e [ 'metadata' ] [ 'name' ] ) multiplexJson = { } for cluster in slate_clusters : cluster_name = cluster [ 'metadata' ] [ 'name' ] cluster_status_query = "/v1alpha3/clusters/" + cluster_name + "/ping?token=" + query [ 'token' ] + "&cache" multiplexJson [ cluster_status_query ] = { "method" : "GET" } multiplex = requests . post ( slate_api_endpoint + '/v1alpha3/multiplex' , params = query , json = multiplexJson ) multiplex = multiplex . json ( ) cluster_status_dict = { } for cluster in multiplex : cluster_name = cluster . split ( '/' ) [ 3 ] cluster_status_dict [ cluster_name ] = json . loads ( multiplex [ cluster ] [ 'body' ] ) [ 'reachable' ] return slate_clusters , cluster_status_dict
short_docstring: Get Clusters and Status on SLATE
short_docstring_tokens: Get Clusters and Status on SLATE
comment: """
      - Get Clusters and Status on SLATE
      """$SEP$# Sorted ordered list of clusters on slate$SEP$# POST request for multiplex return