code: def read_database(client, id):
      """Read a CosmosDB database.
  
      Args:
          client (object): A pydocumentdb client object.
          id (str): Database ID.
  
      Returns:
          object: A database.
      """
      try:
          database_link = "dbs/" + id
          database = client.ReadDatabase(database_link)
          return database
      except errors.DocumentDBError as e:
          if e.status_code == 404:
              print(
                  "A database with id '{0}' does not exist".format(id)
              )
          else:
              raise errors.HTTPFailure(e.status_code)
  
imports: import pydocumentdb.errors
label_desc: Use image node_id 3 for calling a global function with example usage: read_database(client, id) and returns: database