code: def _check_wait_input_flag(self):
          
  
          wf_pred = self._wf_pred  # Namespace shortcuts.
          pred = {k: set(v).issubset for k, v in self._pred.items()}
  
          if self._wait_in:
              we = self._wait_in.get  # Namespace shortcut.
  
              def check_wait_input_flag(wait_in, n_id):
                  """
                  Stops the search of the investigated node of the ArciDispatch
                  algorithm, until all inputs are satisfied.
  
                  :param wait_in:
                      If True the node is waiting input estimations.
                  :type wait_in: bool
  
                  :param n_id:
                      Data or function node id.
                  :type n_id: str
  
                  :return:
                      True if all node inputs are satisfied, otherwise False.
                  :rtype: bool
                  """
  
                  # Return true if the node inputs are satisfied.
                  if we(n_id, wait_in):
                      return not pred[n_id](wf_pred[n_id])
                  return False
  
          else:
              def check_wait_input_flag(wait_in, n_id):
                  # Return true if the node inputs are satisfied.
                  return wait_in and not pred[n_id](wf_pred[n_id])
  
          return check_wait_input_flag
docs: Returns a function to stop the search of the investigated node of the
          ArciDispatch algorithm.
  
          :return:
              A function to stop the search.
          :rtype: (bool, str) -> bool