def METHOD_NAME(client, ami_name: str, mk_session: callable):
    regions = response_ok(client.describe_regions()).get("Regions")
    amis = {}
    for r in regions:
        region = r.get("RegionName")
        session_r = mk_session(region_name=region)
        ec2_r = session_r.client("ec2")
        image_ids = []
        resp = response_ok(ec2_r.describe_images(Owners=["self"]))
        for i in resp.get("Images"):
            if i["Name"] == ami_name:
                image_ids.append(i["ImageId"])
        amis[region] = image_ids
    return amis