docs: def rerun_process(self, pid, title=None, agent=None):
          '''
          rerun_process(self, pid, title=None, agent=None)
  
          Reruns a process
  
          :Parameters:
          * *pid* (`string`) -- Process id to rerun
          * *title* (`string`) -- Title for the process
          * *agent* (`string`) -- a valid value may be one of the following: agent identifier, agent identifiers (list) : ["agent_1", "agent_2"..], "all", "any"
  
          :return: process id
  
          '''
          request_data = {}
          if title:
              request_data['name']=title
          if agent:
              request_data['agents']=agent
  
          if self.input.get('pid'):
              request_data['pflow_id']=self.input.get('pid')
  
          ret_data= self._call_rest_api('post', '/processes/'+pid+'/rerun', data=request_data, error='Failed to create a new process')
  
          if not isinstance(ret_data, list):
              raise OperetoClientError(str(ret_data))
  
          new_pid = ret_data[0]
          message = 'Re-executing process [%s] [new process pid = %s] '%(pid, new_pid)
          self.logger.info(message)
          return str(new_pid)