code: def _set_status_flag(self, status):
          
  
          # Remove previous status flag file.
          flag_file_path = self._flag_file_path()
          try:
              os.remove(flag_file_path)
          except:
              # Print message only if the failure to remove the status flag
              # is unexpected; there's no flag for initialization, so we
              # can't remove the file.
              if self.status != "initializing":
                  print("Could not remove flag file: '{}'".format(flag_file_path))
              pass
  
          # Set new status.
          prev_status = self.status
          self.status = status
          self._create_file(self._flag_file_path())
          print("\nChanged status from {} to {}.".format(
                  prev_status, self.status))
docs: Configure state and files on disk to match current processing status.
  
          :param str status: Name of new status designation for pipeline.