def create_flickr_url(photo, size):
    """Create a Flickr image url based on the given photo object and size (in Flickr terms)."""
    # pylint: disable=C0301
    return "https://farm{farm}.staticflickr.com/{server}/{id}_{secret}_{size}.jpg".format(
        size=size, **photo
    )