<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print_clusters(self, names=False):
 """Print contexts."""

        clusters = self.get_clusters()
        if names:
            clusters = [cluster['name'] for cluster in clusters]
        pprint.pprint(clusters)