code: def from_dict(cls, rules_dict: dict, default_rule=None, raise_error=False):
          
  
          # Parse the rules stored in the dictionary
          rules = {k: _parser.parse_rule(v, raise_error)
                   for k, v in rules_dict.items()}
  
          return cls(rules, default_rule)
docs: Allow loading of rule data from a dictionary.