code: def _create_image_url(self, file_path, type_, target_size):
          
          if self.image_config is None:
              logger.warning('no image configuration available')
              return
          return ''.join([
              self.image_config['secure_base_url'],
              self._image_size(self.image_config, type_, target_size),
              file_path,
          ])
docs: The the closest available size for specified image type.
  
          Arguments:
            file_path (:py:class:`str`): The image file path.
            type_ (:py:class:`str`): The type of image to create a URL
              for, (``'poster'`` or ``'profile'``).
            target_size (:py:class:`int`): The size of image to aim for (used
              as either width or height).