code: def print_clusters(self, names=False):
          
          clusters = self.get_clusters()
          if names:
              clusters = [cluster['name'] for cluster in clusters]
          pprint.pprint(clusters)
docs: Print contexts.