code: def activities(self, name=None, pk=None, scope=None, **kwargs):
          request_params = {
              'id': pk,
              'name': name,
              'scope': scope
          }
          if self.match_app_version(label='wim', version='>=2.0.0', default=False):
              request_params.update(API_EXTRA_PARAMS['activity'])
          if kwargs:
              request_params.update(**kwargs)
          response = self._request('GET', self._build_url('activities'), params=request_params)
          if response.status_code != requests.codes.ok:
              raise NotFoundError("Could not retrieve activities. Server responded with {}".format(str(response)))
          data = response.json()
          if self.match_app_version(label='wim', version='<2.0.0', default=True):
              return [Activity(a, client=self) for a in data['results']]
          else:
              return [Activity2(a, client=self) for a in data['results']]