docstr: Check if a file will be overwritten upon processing the inputs.
  
  If it is bound to happen, an action is taken depending on
  self._force_overwrite (or --force via command line). A log message is
  output independently of the outcome to tell the user something
  happened.
docstr_tok: ["Check","if","a","file","will","be","overwritten","upon","processing","the","inputs",".","If","it","is","bound","to","happen",",","an","action","is","taken","depending","on","self._force_overwrite","(","or","--","force","via","command","line",")",".","A","log","message","is","output","independently","of","the","outcome","to","tell","the","user","something","happened","."]
code: def manage_output_overwrite(self):
      """Check if a file will be overwritten upon processing the inputs.
  
      If it is bound to happen, an action is taken depending on
      self._force_overwrite (or --force via command line). A log message is
      output independently of the outcome to tell the user something
      happened.
      """
      duplicates = []
      for output in self.flat_outputs:
          if os.path.isfile(output):
              duplicates.append(output)
  
      if len(duplicates) > 0:
          if self._force_overwrite:
              logging.info(
                  "The following output files are about to be"
                  " overwritten."
              )
  
          else:
              logging.info(
                  "The following output files already exist, the "
                  "workflow will not continue processing any "
                  "further. Add the --force flag to allow output "
                  "files overwrite."
              )
  
          for dup in duplicates:
              logging.info(dup)
  
          return self._force_overwrite
  
      return True
  
file_path: dipy/dipy/workflows/workflow.py
imports: import inspect
  import logging
  import os
  from dipy.workflows.multi_io import io_iterator_
label_desc: Use image node_id 3 for calling the Workflow obj's underlying member method code with example usage: obj.manage_output_overwrite() and returns: True, self