# Path: pif_ir/bir/utils/validate.py
# def check_attributes(obj_name, attributes, required_attributes):
#     for attr in required_attributes:
#         if attr not in attributes:
#             raise BIRYamlAttrError(attr, obj_name)


import logging 
from collections import OrderedDict
from pif_ir.bir.utils.validate import check_attributes


class BIRStruct(object):
    required_attributes = ['fields']

    def __init__(self, name, struct_attrs):

# Path: pif_ir/bir/utils/validate.py
# def check_attributes(obj_name, attributes, required_attributes):
#     for attr in required_attributes:
#         if attr not in attributes:
#             raise BIRYamlAttrError(attr, obj_name)


# Path: pif_ir/bir/objects/bir_struct.py
import logging 
from collections import OrderedDict
from pif_ir.bir.utils.validate import check_attributes



class BIRStruct(object):
    required_attributes = ['fields']

    def __init__(self, name, struct_attrs):

        check_attributes(name, struct_attrs, BIRStruct.required_attributes)