code: def _get_save_wall_photo(session, photo, server, hash, user_id=None, group_id=None):
          
          if group_id < 0:
              group_id = abs(group_id)
  
          response = session.fetch("photos.saveWallPhoto", photo=photo, server=server, hash=hash, user_id=user_id, group_id=group_id)[0]
          return response['id'], response['owner_id']
docs: https://vk.com/dev/photos.saveWallPhoto