def METHOD_NAME(self):
    api_client = self.docker.api
    for line in api_client.build(path="test/python/docker/build_labels"):
        try:
            parsed = json.loads(line.decode("utf-8"))
        except json.JSONDecodeError as e:
            raise IOError(f"Line '{line}' was not JSON parsable")
        assert "errorDetail" not in parsed