code: def main():
      bi.init("Thrift", "thrift")
  
      schemas_map = bi.schemas_map()
      ordered_schemas = OrderedDict()
      for name, schema in schemas_map.items():
          add_schema_to_dependency_array(
              schema, ordered_schemas, schemas_map
          )
  
      bi.write_to_file(
          "water/bindings/structs/H2O.thrift",
          generate_thrift(ordered_schemas),
      )
  
      type_adapter.vprint_translation_map()
  
file_path: h2o-3/h2o-bindings/bin/gen_thrift.py
imports: from collections import OrderedDict
  import bindings
label_desc: Use image node_id 6 for calling a global function with example usage: main() without return types