def __getitem__(self, index):
        data = object.__getattribute__(self, 'data')
        try:
            rv = data[index]
        except (IndexError, KeyError, TypeError):
            raise ConfigResolutionError('%r is not a valid index for %r' % (index, object.__getattribute__(self, 'path')))
        if not isinstance(rv, list):
            rv = self.evaluate(rv)
        else:
            # deal with a slice
            result = []
            for a in rv:
                result.append(self.evaluate(a))
            rv = result
        return rv
dataset/ETHPy150Open twitterdev/twitter-for-bigquery/libs/config.py/Sequence.__getitem__/original