def METHOD_NAME(self, name: str, meter: Meter) -> None:
    if "_meters" not in self.__dict__:
        raise AttributeError(
            "cannot assign meter before MeterDict.__init__() call"
        )
    elif "/" in name:
        raise KeyError("meter name cannot contain '/'")
    elif name == "":
        raise KeyError("meter name cannot be empty")
    elif hasattr(self, name) and name not in self._meters:
        raise KeyError(f"attribute {name} already exists")
    self._meters[name] = meter