<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def container_by_id(self, id):
 """ Returns container with given id """

        if not id:
            return None
        return next((container for container in self.containers(all=True)
                     if container['Id'] == id), None)