def create_from_breadcrumbs(breadcrumb_str, separator='>'):
 category_names = [x.strip() for x in breadcrumb_str.split(separator)]
 categories = create_from_sequence(category_names)
 return categories[(-1)]

def create_from_breadcrumbs ( breadcrumb_str , separator = '>' ) : category_names = [ x . strip ( ) for x in breadcrumb_str . split ( separator ) ] categories = create_from_sequence ( category_names ) return categories [ ( - 1 ) ]
create categories from a breadcrumb string .