code: def logs(self, container_id, stderr=True, stream=True):
          
          logger.info("getting stdout of container '%s'", container_id)
          logger.debug("container_id = '%s', stream = '%s'", container_id, stream)
          # returns bytes
          response = self.d.logs(container_id, stdout=True, stderr=stderr, stream=stream)
          if not stream:
              if isinstance(response, bytes):
                  response = response.decode("utf-8")  # py2 & 3 compat
              response = [line for line in response.splitlines() if line]
          return response
docs: acquire output (stdout, stderr) from provided container
  
          :param container_id: str
          :param stderr: True, False
          :param stream: if True, return as generator
          :return: either generator, or list of strings