code: def __get_bg_bounding_pipe(bgmarkers):
      # constants
      xdim = 0
      ydim = 1
  
      # compute biggest bb in direction
      bb = __xd_iterator_pass_on(
          bgmarkers, (xdim, ydim), __extract_bbox
      )
  
      slicer = [slice(None)] * bgmarkers.ndim
      slicer[xdim] = bb[0]
      slicer[ydim] = bb[1]
  
      return slicer
  
file_path: medpy/bin/medpy_graphcut_label_bgreduced.py
imports: from argparse import RawTextHelpFormatter
  import argparse
  import logging
  import itertools
  import os
  import scipy
  from scipy import ndimage
  from medpy.core import ArgumentError, Logger
  from medpy.io import load, save
  from medpy import graphcut
  from medpy import filter
  from medpy.graphcut.wrapper import split_marker
label_desc: Use image node_id 2 for calling a global function with example usage: __get_bg_bounding_pipe(bgmarkers) and returns: slicer