@gen.coroutine
  def _CreateActivity(self, sharer_user, timestamp, activity_func, **kwargs):
    activity_id = Activity.ConstructActivityId(timestamp, self._new_user.webapp_dev_id, self._unique_id)
    self._unique_id += 1
    activity = yield activity_func(self._client,
                                   sharer_user.user_id,
                                   self._viewpoint_id,
                                   activity_id,
                                   timestamp,
                                   update_seq=self._update_seq,
                                   **kwargs)
    self._update_seq += 1
    raise gen.Return(activity)
Creates an activity by invoking "activity_func" with the given args.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/op/create_prospective_op.py/CreateProspectiveOperation._CreateActivity