def METHOD_NAME(self, name):
    """get extension by name."""
    extensions = self.extensions
    if name in extensions:
        return extensions[name].extension
    else:
        raise ValueError(f'extension {name} not found')