code: def download(self, asset, callback=None):
          '''Download the specified asset. If provided, the callback will be
          invoked asynchronously. Otherwise it is up to the caller to handle the
          response Body.
  
          :param asset dict: An asset representation from the API
          :param callback: An optional function to aysnchronsously handle the
                           download. See :py:func:`planet.api.write_to_file`
          :returns: :py:Class:`planet.api.models.Response` containing a
                    :py:Class:`planet.api.models.Body` of the asset.
          :raises planet.api.exceptions.APIException: On API error.
          '''
          download_url = asset['location']
          return self._get(download_url, models.Body, callback=callbackf download(self, asset, callback=None):
          '''Download the specified asset. If provided, the callback will be
          invoked asynchronously. Otherwise it is up to the caller to handle the
          response Body.
  
          :param asset dict: An asset representation from the API
          :param callback: An optional function to aysnchronsously handle the
                           download. See :py:func:`planet.api.write_to_file`
          :returns: :py:Class:`planet.api.models.Response` containing a
                    :py:Class:`planet.api.models.Body` of the asset.
          :raises planet.api.exceptions.APIException: On API error.
          '''
          download_url = asset['location']
          return self._get(download_url, models.Body, callback=callback)
docs: Download the specified asset. If provided, the callback will be
          invoked asynchronously. Otherwise it is up to the caller to handle the
          response Body.
  
          :param asset dict: An asset representation from the API
          :param callback: An optional function to aysnchronsously handle the
                           download. See :py:func:`planet.api.write_to_file`
          :returns: :py:Class:`planet.api.models.Response` containing a
                    :py:Class:`planet.api.models.Body` of the asset.
          :raises planet.api.exceptions.APIException: On API error.