def __init__(self, mode='plain', **kwargs):
    digest_config(self, kwargs)
    self.mode = mode
    self.parts_named = False
    try:
        svg_file = os.path.join(SVG_IMAGE_DIR, ('%s_%s.svg' % (self.file_name_prefix, mode)))
        SVGMobject.__init__(self, file_name=svg_file, **kwargs)
    except:
        warnings.warn(('No %s design with mode %s' % (self.file_name_prefix, mode)))
        svg_file = os.path.join(SVG_IMAGE_DIR, 'circles_and_squares_plain.svg')
        SVGMobject.__init__(self, mode='plain', file_name=svg_file, **kwargs)
def __init__(self, mode='plain', **kwargs):
    digest_config(self, kwargs)
    self.mode = mode
    self.parts_named = False
    try:
        svg_file = os.path.join(SVG_IMAGE_DIR, ('%s_%s.svg' % (self.file_name_prefix, mode)))
        SVGMobject.__init__(self, file_name=svg_file, **kwargs)
    except:
        warnings.warn(('No %s design with mode %s' % (self.file_name_prefix, mode)))
        svg_file = os.path.join(SVG_IMAGE_DIR, 'circles_and_squares_plain.svg')
        SVGMobject.__init__(self, mode='plain', file_name=svg_file, **kwargs)