def load_orthologs(fo: IO, metadata: dict):
version = metadata["<STR_LIT>"]["<STR_LIT:version>"]<EOL>with timy.Timer("<STR_LIT>") as timer:<EOL><INDENT>arango_client = arangodb.get_client()<EOL>belns_db = arangodb.get_belns_handle(arango_client)<EOL>arangodb.batch_load_docs(<EOL>belns_db, orthologs_iterator(fo, version), on_duplicate="<STR_LIT>"<EOL>)<EOL>log.info(<EOL>"<STR_LIT>",<EOL>elapsed=timer.elapsed,<EOL>source=metadata["<STR_LIT>"]["<STR_LIT:source>"],<EOL>)<EOL>remove_old_ortholog_edges = f"""<STR_LIT>"""<EOL>remove_old_ortholog_nodes = f"""<STR_LIT>"""<EOL>arangodb.aql_query(belns_db, remove_old_ortholog_edges)<EOL>arangodb.aql_query(belns_db, remove_old_ortholog_nodes)<EOL><DEDENT>metadata["<STR_LIT>"] = f"<STR_LIT>"<EOL>try:<EOL><INDENT>belns_db.collection(arangodb.belns_metadata_name).insert(metadata)<EOL><DEDENT>except ArangoError as ae:<EOL><INDENT>belns_db.collection(arangodb.belns_metadata_name).replace(metadata)<EOL><DEDENT>
Load orthologs into ArangoDB

    Args:
        fo: file obj - orthologs file
        metadata: dict containing the metadata for orthologs