def is_2i_supported(self):
        # Immediate test to see if 2i is even supported w/ the backend
        try:
            self.client.get_index('foo', 'bar_bin', 'baz')
            return True
        except Exception as e:
            if "indexes_not_supported" in str(e):
                return False
            return True  # it failed, but is supported!
dataset/ETHPy150Open basho/riak-python-client/riak/tests/test_2i.py/TwoITests.is_2i_supported/original