code: def __insert_image_info(self, title, _from, info):
          
          for img in self.data['image']:
              if 'url' not in img:
                  if title == img['file']:  # matching title/file
                      img.update(info)
                  elif _from == img['file']:  # matching from/file
                      img.update(info)
docs: Insert API image INFO into matching image dict
  
          We make one imageinfo request containing only unique image
          filenames. We reduce duplication by asking for image data per
          file, instead of per "kind" or source (Wikipedia, Wikidata,
          etc.), because some sources reference the same image file. We
          match API imageinfo response data to existing image filenames
          by API title or normalized "from" title. So, some imageinfo
          data will be applied to more than one image "kind" (source) if
          they share the same filename.