code: def remove_failed_work_units(self, work_spec_name, work_unit_names):
          '''Remove some failed work units.
  
          If `work_unit_names` is :const:`None` (which must be passed
          explicitly), all failed work units in `work_spec_name` are
          removed; otherwise only the specific named work units will be.
  
          Also consider :meth:`retry` to move failed work units back into
          the available queue.
  
          :param str work_spec_name: name of the work spec
          :param list work_unit_names: names of the work units, or
            :const:`None` for all in `work_spec_name`
          :return: number of work units removed
  
          '''
          return self._remove_some_work_units(
              work_spec_name, work_unit_names, suffix=_FAILEDf remove_failed_work_units(self, work_spec_name, work_unit_names):
          '''Remove some failed work units.
  
          If `work_unit_names` is :const:`None` (which must be passed
          explicitly), all failed work units in `work_spec_name` are
          removed; otherwise only the specific named work units will be.
  
          Also consider :meth:`retry` to move failed work units back into
          the available queue.
  
          :param str work_spec_name: name of the work spec
          :param list work_unit_names: names of the work units, or
            :const:`None` for all in `work_spec_name`
          :return: number of work units removed
  
          '''
          return self._remove_some_work_units(
              work_spec_name, work_unit_names, suffix=_FAILED)
docs: Remove some failed work units.
  
          If `work_unit_names` is :const:`None` (which must be passed
          explicitly), all failed work units in `work_spec_name` are
          removed; otherwise only the specific named work units will be.
  
          Also consider :meth:`retry` to move failed work units back into
          the available queue.
  
          :param str work_spec_name: name of the work spec
          :param list work_unit_names: names of the work units, or
            :const:`None` for all in `work_spec_name`
          :return: number of work units removed