code: def get_hash(key: str) -> int:
      
      # 4294967295 == 2**32 - 1 which is the maximum allowable seed for a `numpy.random.RandomState`.
      return int(hashlib.sha1(key.encode('utf8')).hexdigest(), 16) % 4294967295
docs: Gets a hash of the provided key.
  
      Parameters
      ----------
      key :
          A string used to create a seed for the random number generator.
  
      Returns
      -------
      int
          A hash of the provided key.