code: def get_mosaic_by_name(self, name):
          '''Get the API representation of a mosaic by name.
  
          :param name str: The name of the mosaic
          :returns: :py:Class:`planet.api.models.Mosaics`
          :raises planet.api.exceptions.APIException: On API error.
          '''
          params = {'name__is': name}
          url = self._url('basemaps/v1/mosaics')
          return self._get(url, models.Mosaics, params=params).get_body(f get_mosaic_by_name(self, name):
          '''Get the API representation of a mosaic by name.
  
          :param name str: The name of the mosaic
          :returns: :py:Class:`planet.api.models.Mosaics`
          :raises planet.api.exceptions.APIException: On API error.
          '''
          params = {'name__is': name}
          url = self._url('basemaps/v1/mosaics')
          return self._get(url, models.Mosaics, params=params).get_body()
docs: Get the API representation of a mosaic by name.
  
          :param name str: The name of the mosaic
          :returns: :py:Class:`planet.api.models.Mosaics`
          :raises planet.api.exceptions.APIException: On API error.