code: def to_ttype(self):
      return ttypes.IndexInfo(
          self.column_name,
          self.index_type.to_ttype(),
          [p.to_ttype() for p in self.params],
      )
  
file_path: infinity/python/infinity/index.py
imports: from enum import Enum
  import infinity.remote_thrift.infinity_thrift_rpc.ttypes
label_desc: Use image node_id 6 for calling the IndexInfo obj's underlying member method code with example usage: obj.to_ttype() and returns: ttypes