<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_ansible_by_id(self, ansible_id):
 """Return a ansible with that id or None."""


        for elem in self.ansible_hosts:
            if elem.id == ansible_id:
                return elem
        return None