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