<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_header(self, idx, formatted=False):
 """ Return a list of the variable names at the given indices """

        header = self._uname if not formatted else self._fname
        return [header[x] for x in idx]