def METHOD_NAME(self) -> dict:
    """Load the anchor registry in memory."""
    if not self._yaml_file:
        return {}
    registry = None
    if self._yaml_file.exists():
        contents = yaml.load(open(self._yaml_file, "r").read(), Loader=yaml.Loader)
        if contents is not None:
            registry = contents.get("terms")
    return registry or {}