# Buggy code
def serializedATN():
    with StringIO() as buf:
        buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3")
        buf.write("\26{\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7")
        buf.write("\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r\4")
        buf.write("\16\t\16\4\17\t\17\4\20\t\20\3\2\3\2\3\2\3\2\7\2%\n\2")
        buf.write("\f\2\16\2(\13\2\3\2\3\2\3\2\3\2\3\2\3\2\5\2\60\n\2\3")
        buf.write("\2\3\2\3\2\3\2\7\2\66\n\2\f\2\16\29\13\2\3\2\7\2<\n\2")
        buf.write("\f\2\16\2?\13\2\3\3\3\3\3\3\3\4\3\4\3\5\6\5G\n\5\r\5")
        buf.write("\16\5H\3\6\3\6\3\6\3\7\3\7\3\b\3\b\3\b\3\t\3\t\3\t\3")
        buf.write("\t\3\t\7\tX\n\t\f\t\16\t[\13\t\3\n\3\n\3\n\3\n\3\13\3")
        buf.write("\13\3\13\3\f\3\f\3\f\3\r\3\r\3\r\3\16\3\16\3\16\3\17")
        buf.write("\3\17\3\17\3\17\7\17q\n\17\f\17\16\17t\13\17\3\20\6\20")
        buf.write("w\n\20\r\20\16\20x\3\20\2\2\21\2\4\6\b\n\f\16\20\22\24")
        buf.write("\26\30\32\34\36\2\7\5\2\3\b\24\24\26\26\4\2\t\t\r\r\3")
        buf.write("\2\16\17\4\2\t\t\20\20\7\2\3\3\n\13\22\22\24\24\26\26")
        buf.write("\2s\2 \3\2\2\2\4@\3\2\2\2\6C\3\2\2\2\bF\3\2\2\2\nJ\3")
        buf.write("\2\2\2\fM\3\2\2\2\16O\3\2\2\2\20R\3\2\2\2\22\\\3\2\2")
        buf.write("\2\24`\3\2\2\2\26c\3\2\2\2\30f\3\2\2\2\32i\3\2\2\2\34")
        buf.write('l\3\2\2\2\36v\3\2\2\2 &\5\4\3\2!"\5\6\4\2"#\7\3\2\2')
        buf.write("#%\3\2\2\2$!\3\2\2\2%(\3\2\2\2&$\3\2\2\2&'\3\2\2\2'")
        buf.write("/\3\2\2\2(&\3\2\2\2)*\7\23\2\2*+\5\b\5\2+,\7\23\2\2,")
        buf.write("-\7\24\2\2-\60\3\2\2\2.\60\5\b\5\2/)\3\2\2\2/.\3\2\2")
        buf.write("\2\60\61\3\2\2\2\61\62\5\n\6\2\62\67\5\f\7\2\63\64\7")
        buf.write("\24\2\2\64\66\5\20\t\2\65\63\3\2\2\2\669\3\2\2\2\67\65")
        buf.write("\3\2\2\2\678\3\2\2\28=\3\2\2\29\67\3\2\2\2:<\7\25\2\2")
        buf.write(";:\3\2\2\2<?\3\2\2\2=;\3\2\2\2=>\3\2\2\2>\3\3\2\2\2?")
        buf.write("=\3\2\2\2@A\7\26\2\2AB\7\24\2\2B\5\3\2\2\2CD\7\26\2\2")
        buf.write("D\7\3\2\2\2EG\t\2\2\2FE\3\2\2\2GH\3\2\2\2HF\3\2\2\2H")
        buf.write("I\3\2\2\2I\t\3\2\2\2JK\7\21\2\2KL\7\24\2\2L\13\3\2\2")
        buf.write("\2MN\7\22\2\2N\r\3\2\2\2OP\7\f\2\2PQ\7\24\2\2Q\17\3\2")
        buf.write("\2\2RS\5\16\b\2SY\5\22\n\2TU\5\24\13\2UV\5\22\n\2VX\3")
        buf.write("\2\2\2WT\3\2\2\2X[\3\2\2\2YW\3\2\2\2YZ\3\2\2\2Z\21\3")
        buf.write("\2\2\2[Y\3\2\2\2\\]\5\32\16\2]^\5\26\f\2^_\5\34\17\2")
        buf.write("_\23\3\2\2\2`a\t\3\2\2ab\7\24\2\2b\25\3\2\2\2cd\t\4\2")
        buf.write("\2de\7\24\2\2e\27\3\2\2\2fg\t\5\2\2gh\7\24\2\2h\31\3")
        buf.write("\2\2\2ij\7\26\2\2jk\7\24\2\2k\33\3\2\2\2lr\5\36\20\2")
        buf.write("mn\5\30\r\2no\5\36\20\2oq\3\2\2\2pm\3\2\2\2qt\3\2\2\2")
        buf.write("rp\3\2\2\2rs\3\2\2\2s\35\3\2\2\2tr\3\2\2\2uw\t\6\2\2")
        buf.write("vu\3\2\2\2wx\3\2\2\2xv\3\2\2\2xy\3\2\2\2y\37\3\2\2\2")
        buf.write("\n&/\67=HYrx")
        return buf.getvalue()


# Traceback (IndexError)
$ az vm extension image list --latest -l westcentralus -o tsv
The command failed with an unexpected error. Here is the traceback:

list index out of range
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 560, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 618, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 611, in _run_job
six.reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 588, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 297, in __call__
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 461, in default_command_handler
return op(**command_args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/vm/custom.py", line 1272, in list_vm_extension_images
cmd.cli_ctx, publisher_name, name, version, image_location, latest)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/vm/_actions.py", line 155, in load_extension_images_thru_services
t.result()  # don't use the result but expose exceptions from the threads
File "/opt/az/lib/python3.6/concurrent/futures/_base.py", line 425, in result
return self.__get_result()
File "/opt/az/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/opt/az/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/vm/_actions.py", line 137, in _load_extension_images_from_publisher
'version': versions[0].name})
IndexError: list index out of range

# Fixed code
def serializedATN():
    with StringIO() as buf:
        buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3")
        buf.write("\26~\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7")
        buf.write("\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r\4")
        buf.write("\16\t\16\4\17\t\17\4\20\t\20\3\2\3\2\3\2\3\2\7\2%\n\2")
        buf.write("\f\2\16\2(\13\2\3\2\3\2\3\2\3\2\3\2\3\2\5\2\60\n\2\3")
        buf.write("\2\3\2\3\2\3\2\7\2\66\n\2\f\2\16\29\13\2\3\2\7\2<\n\2")
        buf.write("\f\2\16\2?\13\2\3\3\3\3\3\3\3\4\6\4E\n\4\r\4\16\4F\3")
        buf.write("\5\6\5J\n\5\r\5\16\5K\3\6\3\6\3\6\3\7\3\7\3\b\3\b\3\b")
        buf.write("\3\t\3\t\3\t\3\t\3\t\7\t[\n\t\f\t\16\t^\13\t\3\n\3\n")
        buf.write("\3\n\3\n\3\13\3\13\3\13\3\f\3\f\3\f\3\r\3\r\3\r\3\16")
        buf.write("\3\16\3\16\3\17\3\17\3\17\3\17\7\17t\n\17\f\17\16\17")
        buf.write("w\13\17\3\20\6\20z\n\20\r\20\16\20{\3\20\2\2\21\2\4\6")
        buf.write("\b\n\f\16\20\22\24\26\30\32\34\36\2\b\4\2\3\4\26\26\5")
        buf.write("\2\3\b\24\24\26\26\4\2\t\t\r\r\3\2\16\17\4\2\t\t\20\20")
        buf.write("\7\2\3\3\n\13\22\22\24\24\26\26\2w\2 \3\2\2\2\4@\3\2")
        buf.write("\2\2\6D\3\2\2\2\bI\3\2\2\2\nM\3\2\2\2\fP\3\2\2\2\16R")
        buf.write("\3\2\2\2\20U\3\2\2\2\22_\3\2\2\2\24c\3\2\2\2\26f\3\2")
        buf.write("\2\2\30i\3\2\2\2\32l\3\2\2\2\34o\3\2\2\2\36y\3\2\2\2")
        buf.write(' &\5\4\3\2!"\5\6\4\2"#\7\3\2\2#%\3\2\2\2$!\3\2\2\2')
        buf.write("%(\3\2\2\2&$\3\2\2\2&'\3\2\2\2'/\3\2\2\2(&\3\2\2\2")
        buf.write(")*\7\23\2\2*+\5\b\5\2+,\7\23\2\2,-\7\24\2\2-\60\3\2\2")
        buf.write("\2.\60\5\b\5\2/)\3\2\2\2/.\3\2\2\2\60\61\3\2\2\2\61\62")
        buf.write("\5\n\6\2\62\67\5\f\7\2\63\64\7\24\2\2\64\66\5\20\t\2")
        buf.write("\65\63\3\2\2\2\669\3\2\2\2\67\65\3\2\2\2\678\3\2\2\2")
        buf.write("8=\3\2\2\29\67\3\2\2\2:<\7\25\2\2;:\3\2\2\2<?\3\2\2\2")
        buf.write("=;\3\2\2\2=>\3\2\2\2>\3\3\2\2\2?=\3\2\2\2@A\7\26\2\2")
        buf.write("AB\7\24\2\2B\5\3\2\2\2CE\t\2\2\2DC\3\2\2\2EF\3\2\2\2")
        buf.write("FD\3\2\2\2FG\3\2\2\2G\7\3\2\2\2HJ\t\3\2\2IH\3\2\2\2J")
        buf.write("K\3\2\2\2KI\3\2\2\2KL\3\2\2\2L\t\3\2\2\2MN\7\21\2\2N")
        buf.write("O\7\24\2\2O\13\3\2\2\2PQ\7\22\2\2Q\r\3\2\2\2RS\7\f\2")
        buf.write("\2ST\7\24\2\2T\17\3\2\2\2UV\5\16\b\2V\\\5\22\n\2WX\5")
        buf.write("\24\13\2XY\5\22\n\2Y[\3\2\2\2ZW\3\2\2\2[^\3\2\2\2\\Z")
        buf.write("\3\2\2\2\\]\3\2\2\2]\21\3\2\2\2^\\\3\2\2\2_`\5\32\16")
        buf.write("\2`a\5\26\f\2ab\5\34\17\2b\23\3\2\2\2cd\t\4\2\2de\7\24")
        buf.write("\2\2e\25\3\2\2\2fg\t\5\2\2gh\7\24\2\2h\27\3\2\2\2ij\t")
        buf.write("\6\2\2jk\7\24\2\2k\31\3\2\2\2lm\7\26\2\2mn\7\24\2\2n")
        buf.write("\33\3\2\2\2ou\5\36\20\2pq\5\30\r\2qr\5\36\20\2rt\3\2")
        buf.write("\2\2sp\3\2\2\2tw\3\2\2\2us\3\2\2\2uv\3\2\2\2v\35\3\2")
        buf.write("\2\2wu\3\2\2\2xz\t\7\2\2yx\3\2\2\2z{\3\2\2\2{y\3\2\2")
        buf.write("\2{|\3\2\2\2|\37\3\2\2\2\13&/\67=FK\\u{")
        return buf.getvalue()