The documentation and examples point to the method get_database_client(database) to get a database by ID. Python3 runtime throws an error that such method doesn't exist.
In fact, calling of dir() on a CosmosClient instance gives the list of methods not at all listed in the documentation, and it's consistent with the source code right here.
Documentation seems to be completely out of sync.