def get_instance_pool(dbricks_client, pool_name):
    """
    Get the instance pool ID corresponding to an instance pool name.
    Returns None if instance pool with that name was not found.
    """
    # Query API for list of instance pools
    response = dbricks_client.get(
        'instance-pools/list',
    )
    # API quirk: 'instance_pools' element is not returned if
    # there are no instance pools.
    if 'instance_pools' in response:
        for pool in response['instance_pools']:
            if pool["instance_pool_name"] == pool_name:
                return pool["instance_pool_id"]
    return None