code: def convert_dict_qtables(qtables):
      qtables = [
          qtables[key] for key in range(len(qtables)) if key in qtables
      ]
      for idx, table in enumerate(qtables):
          qtables[idx] = [table[i] for i in zigzag_index]
      return qtables
  
imports: from __future__ import print_function
  import array
  import io
  import struct
  import warnings
  from .None import Image, ImageFile, TiffImagePlugin
  from ._binary import i8, i16be, i32be, o8
  from ._util import isStringType
  from .JpegPresets import presets
label_desc: Use image node_id 10 for calling a global function with example usage: convert_dict_qtables(qtables) and returns: qtables