def render(self, slide: BasicSlide, filename: str, one_file_per_patch: bool=False):
    if one_file_per_patch:
        raise NotImplementedError()
    with open(filename, 'w') as json_file:
        json.dump(slide.patches, json_file, cls=JSONEncoder)
def render(self, slide: BasicSlide, filename: str, one_file_per_patch: bool=False):
    if one_file_per_patch:
        raise NotImplementedError()
    with open(filename, 'w') as json_file:
        json.dump(slide.patches, json_file, cls=JSONEncoder)