def METHOD_NAME(self):
    if self._registry is None:
        if self.multiproc:
            self._pid = os.getpid()
        self._registry = self.prometheus_client.REGISTRY
    else:
        if self.multiproc:
            assert self._pid is not None
            assert (
                os.getpid() == self._pid
            ), "The current process's different than the process which the prometheus client gets created"
    return self._registry