<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def import_image(self, data, stream: bool = False):
 """ Import tarball of image to docker. Args: data: tarball data of image to be imported Returns: Tarball of the image """

        headers = {"Content-Type": "application/x-tar"}
        response = await self.docker._query_chunked_post(
            "images/load", "POST", data=data, headers=headers
        )
        return await json_stream_result(response, stream=stream)