code: def get_exclude_regions(items):
      
      def _get_sample_excludes(d):
          excludes = dd.get_exclude_regions(d)
          # back compatible
          if tz.get_in(("config", "algorithm", "remove_lcr"), d, False):
              excludes.append("lcr")
          return excludes
      out = reduce(operator.add, [_get_sample_excludes(d) for d in items])
      return sorted(list(set(out)))
docs: Retrieve regions to exclude from a set of items.
  
      Includes back compatibility for older custom ways of specifying different
      exclusions.