<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_customer(code):
 """ Fetch a customer with the code. Returns None if the customer is not found. """

    Party = client.model('party.party')
    results = Party.find([('code', '=', code)])
    if results:
        return results[0]['id']