code: public GalleryList getListForPhoto(String photoId, int perPage, int page) throws JinxException {
      JinxUtils.validateParams(photoId);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.galleries.getListForPhoto");
      params.put("photo_id", photoId);
      if (perPage > 0) {
        params.put("per_page", Integer.toString(perPage));
      }
      if (page > 0) {
        params.put("page", Integer.toString(page));
      }
      return jinx.flickrGet(params, GalleryList.class);
    }
docs: Return the list of galleries to which a photo has been added. Galleries are returned sorted by date which the photo was added to the gallery.
  <br>
  This method does not require authentication.
  
  @param photoId Required. The ID of the photo to fetch a list of galleries for.
  @param perPage Optional. Number of galleries to return per page. If this argument is &le;= 0, it defaults to 100. The maximum allowed value is 500.
  @param page    Optional. The page of results to return. If this argument is &le;= 0, it defaults to 1.
  @return list of galleries to which a photo has been added.
  @throws JinxException if required parameters are null or empty, or if there are any errors.
  @see <a href="https://www.flickr.com/services/api/flickr.galleries.getListForPhoto.html">flickr.galleries.getListForPhoto</a>