class_docstr: Class to imitate gensim's KeyedVectors, but instead getting the vectors from the memory,
  the vectors will be retrieved from a redis db.
  Based on https://engineering.talentpair.com/serving-word-vectors-
  for-distributed-computations-c5065cbaa02f
class_docstr_tok: ["Class","to","imitate","gensim","'s","KeyedVectors",",","but","instead","getting","the","vectors","from","the","memory",",","the","vectors","will","be","retrieved","from","a","redis","db",".","Based","on","https",":","\/\/engineering.talentpair.com\/serving-word-vectors-","for-distributed-computations-c5065cbaa02f"]
code: def _parse_uri(uri):
      parsed = urlparse(uri)
      try:
          host = parsed.hostname
          port = parsed.port
          database = int(parsed.path.replace("/", "")) or 0
      except (AttributeError, ValueError):
          # pylint: disable=raise-missing-from
          raise RedisKeyedVectorException(f"Invalid redis URI: {uri}")
      return host, port, database
  
file_path: textpipe/textpipe/wrappers.py
imports: import pickle
  from functools import lru_cache
  from urllib.parse import urlparse
  import numpy
  from gensim.models.keyedvectors import KeyedVectors
  from redis import Redis
  from redis.exceptions import RedisError
  from tqdm import tqdm
label_desc: Use image node_id 7 for calling the RedisKeyedVectors obj's underlying member method code with example usage: obj._parse_uri(uri) and returns: host,  port,  database