code: def list(self, resource=None, sort=None):
          
          schema = TagSchema()
          resp = self.service.get(self.base, params={'resource': resource, 'sort': sort})
          return self.service.decode(schema, resp, many=True)
docs: Get a list of tags.
  
          :param resource: (optional) Restrict to given resource type as string.
          :param sort: (optional) Sort fields to apply as string list.
          :return: :class:`tags.Tag <tags.Tag>` list