<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_address(customer_id, data):
 """ Easier to fetch the addresses of customer and then check one by one. You can get fancy by using some validation mechanism too """

    Address = client.model('party.address')

    addresses = Address.find(
        [('party', '=', customer_id)],
        fields=[
            'name', 'street', 'street_bis', 'city', 'zip',
            'subdivision.code', 'country.code'
        ]
    )
    for address in addresses:
        if (
                address['name'] == data['name'] and
                address['street'] == data['street'] and
                address['street_bis'] == data['street_bis'] and
                address['city'] == data['city'] and
                address['zip'] == data['zip'] and
                address['subdivision.code'].endswith(data['state']) and
                address['country.code'] == data['country']):
            return address['id']