

def _get_place_photo(photoreference, api_key, maxheight=None, maxwidth=None, sensor=False):
    "Gets a place's photo by reference.\n    See detailed documentation at https://developers.google.com/places/documentation/photos\n\n    Arguments:\n    photoreference -- The unique Google reference for the required photo.\n\n    Keyword arguments:\n    maxheight -- The maximum desired photo height in pixels\n    maxwidth -- The maximum desired photo width in pixels\n\n    You must specify one of this keyword arguments. Acceptable value is an\n    integer between 1 and 1600.\n    "
    params = {
        'photoreference': photoreference,
        'sensor': str(sensor).lower(),
        'key': api_key,
    }
    if maxheight:
        maxheight['maxheight'] = maxheight
    if maxwidth:
        params['maxwidth'] = maxwidth
    return _fetch_remote_file(GooglePlaces.PHOTO_API_URL, params)

dataset/ETHPy150Open slimkrazy/python-google-places/googleplaces/__init__.py _get_place_photo/VarMisuse@59/243 `params`->`maxheight`