<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def list_all_zones_by_id(region=None, key=None, keyid=None, profile=None):
    '''
    List, by their IDs, all hosted zones in the bound account.

    region
        Region to connect to.

    key
        Secret key to be used.

    keyid
        Access key to be used.

    profile
        A dict with region, key and keyid, or a pillar key (string) that
        contains a dict with region, key and keyid.

    CLI Example:

    .. code-block:: bash

        salt myminion boto_route53.list_all_zones_by_id
    '''
    ret = describe_hosted_zones(region=region, key=key, keyid=keyid,
                                profile=profile)
    return [r['Id'].replace('/hostedzone/', '') for r in ret]