code: def load_dict(self, db_key: str, hierarchical: bool = False) -> dict:
          
          if not hierarchical:
              db_values = self._db.hgetall(db_key)
              for _key, _value in db_values.items():
                  if isinstance(_value, str):
                      db_values[_key] = ast.literal_eval(_value)
              my_dict = db_values
          else:
              my_dict = self._load_dict_hierarchical(db_key)
          return my_dict
docs: Load the dictionary at the specified key.
  
          Hierarchically stored dictionaries use a ':' separator to expand
          the dictionary into a set of Redis hashes.
  
          Args:
              db_key (str): Key at which the dictionary is stored in the db.
              hierarchical (bool): If True, expect the dictionary to have been
                  stored hierarchically. If False, expect the dictionary to have
                  been stored flat.
  
          Returns:
              dict, the dictionary stored at key