code: def clone(self, run=True):
          
          params = {}
          if run:
              params.update({'action': 'run'})
  
          extra = {
              'resource': self.__class__.__name__,
              'query': {'id': self.id, 'run': run}
          }
          logger.info('Cloning task', extra=extra)
          task_data = self._api.post(
              url=self._URL['clone'].format(id=self.id), params=params).json()
  
          return Task(api=self._api, **task_data)
docs: Clone task
          :param run: run task after cloning
          :return: Task object.