code: def inspect_image(self, image_id):
          
          logger.info("inspecting image '%s'", image_id)
          logger.debug("image_id = '%s'", image_id)
          if isinstance(image_id, ImageName):
              image_id = image_id.to_str()
          image_metadata = self.d.inspect_image(image_id)
          return image_metadata
docs: return detailed metadata about provided image (see 'man docker-inspect')
  
          :param image_id: str or ImageName, id or name of the image
          :return: dict