docs: def from_dict(d: Dict[str, Any]) -> 'CoverageInstructions':
          """
          Loads a set of coverage instructions from a given dictionary.
  
          Raises:
              BadCoverageInstructions: if the given coverage instructions are
                  illegal.
          """
          name_type = d['type']
          cls = _NAME_TO_INSTRUCTIONS[name_type]
          return cls.from_dict(d)