Returns container with given id

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)