<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_settings(self, index):
 """Get settings for index. :param index: index name """

        settings = self.es.indices.get_settings(index=index)
        return next(iter(settings.values()))