<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_ids_with_prefix(portal_type, prefix):
 """Return a list of ids sharing the same portal type and prefix """

    brains = search_by_prefix(portal_type, prefix)
    ids = map(api.get_id, brains)
    return ids