def METHOD_NAME(self) -> SharedConnection:
    assert self.connect_params
    assert self.connect_config
    return (
        SharedConnection()
        .with_params(self.connect_params)
        .with_config(self.connect_config)
    )