def _MakeViewpointMetadataDict(viewpoint, follower, obj_store):
  """Returns a viewpoint metadata dictionary appropriate for a service query response.
  The response dictionary contains valid photo urls for the viewpoints cover photo.
  """
  metadata_dict = viewpoint.MakeMetadataDict(follower)
  if metadata_dict in 'cover_photo':
    _AddPhotoUrls(obj_store, metadata_dict['cover_photo'])

  return metadata_dict
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/service.py/_MakeViewpointMetadataDict/swapped operands of `in`