<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_dict(self, db_key: str, hierarchical: bool = False) -> dict: """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 """

        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