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)
A base class to handle Version Control System functions
dataset/ETHPy150Open slimkrazy/python-google-places/googleplaces/__init__.py/_get_place_photo--crossover with--dataset/ETHPy150Open washingtontimes/django-repositories/repositories/vcs/base.py/BaseVCS.__init__