def find_containers(bag, bag_rules):
    """Find the bags that can contain a specified bag."""
    allowed = []
    for n, item in bag_rules.items():
        if bag in item.keys():
            allowed.append(n)
    return allowed