def assure_container(fnc):
 @wraps(fnc)
 def _wrapped(self, container, *args, **kwargs):
  if (not isinstance(container, Container)):
   container = self.get(container)
  return fnc(self, container, *args, **kwargs)
 return _wrapped

def assure_container ( fnc ) : @ wraps ( fnc ) def _wrapped ( self , container , * args , ** kwargs ) : if ( not isinstance ( container , Container ) ) : container = self . get ( container ) return fnc ( self , container , * args , ** kwargs ) return _wrapped
assures that whether a container or a name of a container is passed .