code: def get_table_options(self, connection, table_name, schema, **kw):
          
          def keyfunc(column):
              num = int(column.sortkey)
              # If sortkey is interleaved, column numbers alternate
              # negative values, so take abs.
              return abs(num)
          table = self._get_redshift_relation(connection, table_name,
                                              schema, **kw)
          columns = self._get_redshift_columns(connection, table_name,
                                               schema, **kw)
          sortkey_cols = sorted([col for col in columns if col.sortkey],
                                key=keyfunc)
          interleaved = any([int(col.sortkey) < 0 for col in sortkey_cols])
          sortkey = [col.name for col in sortkey_cols]
          interleaved_sortkey = None
          if interleaved:
              interleaved_sortkey = sortkey
              sortkey = None
          distkeys = [col.name for col in columns if col.distkey]
          distkey = distkeys[0] if distkeys else None
          return {
              'redshift_diststyle': table.diststyle,
              'redshift_distkey': distkey,
              'redshift_sortkey': sortkey,
              'redshift_interleaved_sortkey': interleaved_sortkey,
          }
docs: Return a dictionary of options specified when the table of the
          given name was created.
  
          Overrides interface
          :meth:`~sqlalchemy.engine.Inspector.get_table_options`.