code: def build_infos(
      edge_path, num_nodes, startup_host, startup_port, num_bucket
  ):
      src, dst = load_data(edge_path)
      rs, nodemanager = get_redis(startup_host, startup_port)
      slot = nodemanager.keyslot("num_nodes")
      node = nodemanager.slots[slot][0]["name"]
      res = rs[node].set("num_nodes", num_nodes)
  
      slot = nodemanager.keyslot("num_edges")
      node = nodemanager.slots[slot][0]["name"]
      rs[node].set("num_edges", len(src))
  
      slot = nodemanager.keyslot("nf:infos")
      node = nodemanager.slots[slot][0]["name"]
      rs[node].set(
          "nf:infos",
          json.dumps(
              [
                  ["feats", [-1, 602], "float32"],
              ]
          ),
      )
  
      slot = nodemanager.keyslot("ef:infos")
      node = nodemanager.slots[slot][0]["name"]
      rs[node].set("ef:infos", json.dumps([]))
  
imports: import sys
  import json
  import logging
  from collections import defaultdict
  import tqdm
  import redis
  from redis._compat import b, unicode, bytes, long, basestring
  from rediscluster.nodemanager import NodeManager
  from rediscluster.crc import crc16
  import argparse
  import time
  import pickle
  import numpy
  import scipy.sparse
label_desc: Use image node_id 7 for calling a global function with example usage: build_infos(edge_path, num_nodes, startup_host, startup_port, num_bucket) without return types